> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atomscale.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Tag

> Create a new tag

Creates a new tag for your organization. Optionally assign the tag to a category, or provide an explicit id.

<ParamField body="name" type="string" required>
  Tag name
</ParamField>

<ParamField body="tag_category_id" type="string">
  ID of the category to assign this tag to
</ParamField>

<ParamField body="id" type="string">
  Explicit UUID to use for the tag. If omitted, the server generates one.
</ParamField>

## Response

Returns the created tag.

<ResponseField name="id" type="string">
  Tag UUID
</ResponseField>

<ResponseField name="name" type="string">
  Tag name
</ResponseField>

<ResponseField name="organization_id" type="string">
  ID of the organization the tag belongs to
</ResponseField>

<ResponseField name="tag_category_id" type="string">
  ID of the category this tag belongs to, or `null` if uncategorized
</ResponseField>

<ResponseField name="category_name" type="string">
  Name of the tag's category, or `null` if uncategorized
</ResponseField>

<ResponseField name="usage_count" type="integer">
  Number of data items this tag is applied to
</ResponseField>

<RequestExample>
  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.atomscale.ai/tags/",
      headers={
          "X-API-KEY": "YOUR_API_KEY",
          "Content-Type": "application/json"
      },
      json={
          "name": "high-priority",
          "tag_category_id": "b1a2c3d4-1111-2222-3333-444455556666"
      }
  )
  tag = response.json()
  ```

  ```bash cURL theme={null}
  curl -X POST "https://api.atomscale.ai/tags/" \
    -H "X-API-KEY: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "high-priority",
      "tag_category_id": "b1a2c3d4-1111-2222-3333-444455556666"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "high-priority",
    "organization_id": "org_abc123",
    "tag_category_id": "b1a2c3d4-1111-2222-3333-444455556666",
    "category_name": "Review Status",
    "usage_count": 0
  }
  ```
</ResponseExample>
