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

# Get tags

> Retrieve all custom tags defined for the organization



## OpenAPI

````yaml get /tags
openapi: 3.0.1
info:
  title: AttentPublicAPI
  version: '2024-05-17T21:09:13Z'
servers:
  - url: https://api.attent.app/v1
security: []
paths:
  /tags:
    get:
      tags:
        - Tags
      description: Retrieve all custom tags defined for the organization
      operationId: getOrganizationTags
      responses:
        '200':
          description: Successfully retrieved organization tags
          content:
            application/json:
              schema:
                type: object
                properties:
                  tags:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Unique identifier for the tag
                        name:
                          type: string
                          description: Display name of the tag
                        color:
                          type: string
                          description: Hex color code for the tag
                        condition:
                          type: string
                          description: >-
                            Optional natural language condition for automatic
                            tagging
                        isManual:
                          type: boolean
                          description: Whether this tag is manually applied or automatic
                        profiles:
                          type: array
                          items:
                            type: string
                          description: >-
                            Customer profile names that scope AI tag evaluation
                            (matched against the lead's `profile` field). When
                            absent or empty, the tag is evaluated against all
                            profiles. Only applies to AI tags (`isManual:
                            false`); manual tags are never scoped by profile.
                    description: Array of all organization tags
                example:
                  tags:
                    - id: tag-uuid-1
                      name: High Priority
                      color: '#FF0000'
                      condition: When the customer mentions an urgent issue
                      isManual: true
                    - id: tag-uuid-2
                      name: VIP Customer
                      color: '#00FF00'
                      condition: If the customer has made purchases over $10,000
                      isManual: false
                      profiles:
                        - Profile 1
                        - Profile 2
                    - id: tag-uuid-3
                      name: Follow Up
                      color: '#0000FF'
                      isManual: true
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
      security:
        - api_key: []
components:
  responses:
    '401':
      description: Unauthorized - Invalid or missing API key
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
            example:
              message: Unauthorized
    '500':
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
            example:
              message: Internal Server Error
  securitySchemes:
    api_key:
      type: apiKey
      name: x-api-key
      in: header

````