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

# Set contact tags

> Replaces the contact's full tag set. Every tag id must belong to the workspace (list them with `GET /api/v1/tags`). An empty array clears all tags.

Rate limit: 30 requests per minute.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/contacts/{contactId}/tags
openapi: 3.1.0
info:
  title: Adraa Inbox API
  description: >-
    Public REST API for Adraa Inbox. Assign agents to conversations and send
    messages from your own systems. Authenticate every request with a workspace
    API token.
  version: 1.0.0
  contact:
    email: support@adraa.ai
servers:
  - url: https://api.inbox.adraa.ai
    description: Production
security:
  - apiToken: []
paths:
  /api/v1/contacts/{contactId}/tags:
    put:
      summary: Set contact tags
      description: >-
        Replaces the contact's full tag set. Every tag id must belong to the
        workspace (list them with `GET /api/v1/tags`). An empty array clears all
        tags.


        Rate limit: 30 requests per minute.
      operationId: setContactTags
      parameters:
        - $ref: '#/components/parameters/contactId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - tagIds
              properties:
                tagIds:
                  type: array
                  maxItems: 50
                  items:
                    type: string
                  example:
                    - cmbxh3c4d0008ph01u2v3w4x5
      responses:
        '200':
          description: The contact's resulting tags
          content:
            application/json:
              schema:
                type: object
                properties:
                  tags:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        color:
                          type: string
                          nullable: true
components:
  parameters:
    contactId:
      name: contactId
      in: path
      required: true
      description: ID of the contact. List contacts with `GET /api/v1/contacts` to find it.
      schema:
        type: string
        example: cmbxgy7kq0002ph01u2v3w4x5
  securitySchemes:
    apiToken:
      type: http
      scheme: bearer
      description: >-
        Workspace API token created in Settings → API. Tokens start with
        `adraa_`.

````