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

# Add a tag to a contact

> Puts one of the authenticated user's own tags on one of their contacts. The contact keeps every other tag, and a tag it already carries is left as it is. A team tag, another user's tag or an unknown id is refused. A contact the user does not have is not found. If accessed using an OAuth access token, the `CONTACT_WRITE` scope is required.



## OpenAPI

````yaml /api-reference/v2/openapi.json post /v2/contacts/{id}/tags
openapi: 3.0.0
info:
  title: Cal.com API v2
  description: ''
  version: 1.0.0
  contact: {}
servers: []
security: []
tags: []
paths:
  /v2/contacts/{id}/tags:
    post:
      tags:
        - Contacts
      summary: Add a tag to a contact
      description: >-
        Puts one of the authenticated user's own tags on one of their contacts.
        The contact keeps every other tag, and a tag it already carries is left
        as it is. A team tag, another user's tag or an unknown id is refused. A
        contact the user does not have is not found. If accessed using an OAuth
        access token, the `CONTACT_WRITE` scope is required.
      operationId: ContactsController_addTag
      parameters:
        - name: id
          required: true
          in: path
          description: The contact's `id` from `GET /v2/contacts`.
          schema:
            type: string
            example: 0192f3a1-7c2b-7d4e-9a10-000000000001
        - name: Authorization
          in: header
          description: >-
            value must be `Bearer <token>` where `<token>` is api key prefixed
            with cal_, managed user access token, or OAuth access token
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddContactTagInput'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactTagChangeOutputResponseDto'
        '400':
          description: The tag is not the user's own
        '401':
          description: Unauthenticated
        '403':
          description: Insufficient permissions
        '404':
          description: Contact not found
        '429':
          description: Too many contact lookups
components:
  schemas:
    AddContactTagInput:
      type: object
      properties:
        tagId:
          type: string
          format: uuid
          description: The id of one of the user's own tags, from `GET /v2/contacts/tags`.
          example: 0192f3a1-7c2b-7d4e-9a10-00000000000a
      required:
        - tagId
    ContactTagChangeOutputResponseDto:
      type: object
      properties:
        status:
          enum:
            - success
            - error
          type: string
          example: success
        data:
          $ref: '#/components/schemas/ContactTagChangeOutput'
      required:
        - status
        - data
    ContactTagChangeOutput:
      type: object
      properties:
        contactId:
          type: string
          example: 0192f3a1-7c2b-7d4e-9a10-000000000001
        tagId:
          type: string
          example: 0192f3a1-7c2b-7d4e-9a10-00000000000a
      required:
        - contactId
        - tagId

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.