---
updatedAt: 2025-07-11T10:53:56.000Z
agentTools:
  projectIndex: https://developers.kommo.com/llms.txt
---

# Create tags for a particular entity type

This method allows adding multiple tags for a particular entity specified in the method URL

**Limitations**\
The method is available in correspondence to the user rights.

**Request parameters**

To add a tag, the `“name”` parameter should be passed. If the passed tag name already exists, this tag’s ID will be returned in the response.

**Data type header when the request is successful**\
Content-Type: application/hal+json

**Data type header in case of an error**\
Content-Type: application/problem+json

**Response parameters**\
The method returns an array of created tags.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kommo-api-references",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdomain}.kommo.com",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/{entity_type}/tags": {
      "post": {
        "summary": "Creating tags for a particular entity type",
        "description": "This method allows adding multiple tags for a particular entity specified in the method URL",
        "operationId": "add-tags",
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "description": "One of these: leads|contacts|companies",
            "schema": {
              "type": "string",
              "enum": [
                "leads",
                "contacts",
                "companies"
              ]
            },
            "required": true
          },
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Tag name"
                        },
                        "color": {
                          "type": "string",
                          "default": "null",
                          "description": "Tag color"
                        },
                        "request_id": {
                          "type": "string",
                          "description": "Field that will be returned unchanged in the response and will not be saved."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "type": "object"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": [
                    {
                      "name": "Tag 1"
                    },
                    {
                      "name": "Tag 2",
                      "request_id": "my_request_id"
                    },
                    {
                      "name": "Tag 3"
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Tags added successfully": {
                    "value": "{\n    \"_total_items\": 3,\n    \"_embedded\": {\n        \"tags\": [\n            {\n                \"id\": 263807,\n                \"name\": \"Tag 1\",\n                \"request_id\": \"0\"\n            },\n            {\n                \"id\": 263809,\n                \"name\": \"Tag 2\",\n                \"request_id\": \"my_request_id\"\n            },\n            {\n                \"id\": 263811,\n                \"name\": \"Tag 3\",\n                \"request_id\": \"2\"\n            }\n        ]\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "_total_items": {
                      "type": "integer",
                      "example": 3,
                      "default": 0
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 263807,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Tag 1"
                              },
                              "request_id": {
                                "type": "string",
                                "example": "0"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "text/plain": {
                "examples": {
                  "Invalid data given. Details are available in the request response": {
                    "value": ""
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "User is not authorized": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```