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

# Create a Tag

> Creates a new tag for the `object` given in the request body. Tag names must be unique per object type within the organization.



## OpenAPI

````yaml https://api.monaco.com/openapi.json post /v1/tags/
openapi: 3.1.0
info:
  title: Monaco Public API
  description: Public API for Monaco
  version: 1.0.0
servers:
  - url: https://api.monaco.com
security: []
paths:
  /v1/tags/:
    post:
      tags:
        - Tags
      summary: Create a Tag
      description: >-
        Creates a new tag for the `object` given in the request body. Tag names
        must be unique per object type within the organization.
      operationId: create_tag
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagCreateRequest'
            examples:
              complete:
                summary: Create a tag with every field
                value:
                  object: accounts
                  name: Enterprise
                  color: blue
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicItemResponse_TagResponse_'
              example:
                data:
                  id: 550e8400-e29b-41d4-a716-446655440000
                  name: Enterprise
                  color: blue
                meta:
                  timestamp: '2026-04-21T12:00:00Z'
        4XX:
          description: Client error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorResponse'
components:
  schemas:
    TagCreateRequest:
      properties:
        object:
          $ref: '#/components/schemas/TagObject'
          description: >-
            Object type the tag applies to. One of contacts, accounts,
            opportunities.
          examples:
            - accounts
        name:
          type: string
          maxLength: 100
          minLength: 1
          pattern: ^[a-zA-Z0-9\s]+$
          title: Name
          description: Display name of the tag. Letters, numbers, and spaces only.
          examples:
            - Enterprise
        color:
          anyOf:
            - $ref: '#/components/schemas/DisplayColorEnum'
            - type: 'null'
          description: Display color of the tag.
          examples:
            - blue
      type: object
      required:
        - object
        - name
      title: TagCreateRequest
      description: Request body for creating a tag via POST.
    PublicItemResponse_TagResponse_:
      properties:
        data:
          $ref: '#/components/schemas/TagResponse'
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      type: object
      required:
        - data
      title: PublicItemResponse[TagResponse]
    PublicErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: PublicErrorResponse
    TagObject:
      type: string
      enum:
        - contacts
        - accounts
        - opportunities
      title: TagObject
      description: Object type a tag applies to, as exposed in the public API.
    DisplayColorEnum:
      type: string
      enum:
        - green
        - blue
        - red
        - yellow
        - purple
        - berry
        - peach
        - gray
      title: DisplayColorEnum
    TagResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the tag
        name:
          type: string
          title: Name
          description: Display name of the tag
          examples:
            - Enterprise
        color:
          anyOf:
            - type: string
            - type: 'null'
          title: Color
          description: Display color of the tag
          examples:
            - blue
      type: object
      required:
        - id
        - name
      title: TagResponse
    ResponseMeta:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
          description: Server timestamp of the response
      type: object
      title: ResponseMeta
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Machine-readable error code
          examples:
            - not_found
        message:
          type: string
          title: Message
          description: Human-readable error message
          examples:
            - Resource not found
      type: object
      required:
        - code
        - message
      title: ErrorDetail

````