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

# List tags for a company

> Retrieves tags associated with a specific company.
Optionally filter by `search_key` or `tag_name`.




## OpenAPI

````yaml GET /v1/list-tags/{company_id}
openapi: 3.0.3
info:
  title: SalesCaptain API Documentation Service
  description: >
    API Documentation Service for SalesCaptain platform.

    This service provides endpoints for managing and retrieving company
    information for API documentation purposes.
  version: 0.1.0
  contact:
    name: SalesCaptain API Team
    email: support@salescaptain.com
  license:
    name: Proprietary
    url: https://salescaptain.com/license
servers:
  - url: https://api.salescaptain.com
    description: Production server
security:
  - BearerAuth: []
tags:
  - name: Health
    description: Service health and status endpoints
  - name: Companies
    description: Company management and retrieval operations
  - name: Accounts
    description: Account management and retrieval operations
  - name: Conversation Profiles
    description: Conversation profile management for communication channels
  - name: Conversations
    description: Conversation management and retrieval operations
  - name: Contacts
    description: Contact management and retrieval operations
  - name: Tags
    description: Tag listing, creation, deletion, and contact assignment operations
  - name: Custom Fields
    description: Custom field definition management
  - name: Templates
    description: SMS template retrieval operations
  - name: Analytics
    description: Call analytics and reporting operations
externalDocs:
  description: SalesCaptain API Documentation
  url: https://docs.salescaptain.com
paths:
  /v1/list-tags/{company_id}:
    get:
      tags:
        - Tags
      summary: List tags for a company
      description: |
        Retrieves tags associated with a specific company.
        Optionally filter by `search_key` or `tag_name`.
      operationId: listTags
      parameters:
        - name: company_id
          in: path
          required: true
          description: Unique identifier for the company
          schema:
            type: string
            format: uuid
            example: 7f22b96a-f75b-461e-9a1d-b8ff6f53f519
        - name: search_key
          in: query
          required: false
          description: Search tags by partial name match
          schema:
            type: string
            example: vip
        - name: tag_name
          in: query
          required: false
          description: Filter tags by exact or specific tag name
          schema:
            type: string
            example: VIP
      responses:
        '200':
          description: Tags fetched successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Tags fetched successfully!
                  tags:
                    type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/Tag'
              example:
                message: Tags fetched successfully!
                tags:
                  data:
                    - tag_id: c9d8e7f6-a5b4-3210-9876-543210fedcba
                      company_id: 7f22b96a-f75b-461e-9a1d-b8ff6f53f519
                      tag_name: VIP Customer
                      created_at: '2026-08-11T12:26:00.000Z'
                      updated_at: null
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                status: failure
                error: company_id must be a valid UUID
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '429':
          $ref: '#/components/responses/RateLimitError'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - BearerAuth: []
components:
  schemas:
    Tag:
      type: object
      description: Tag information object
      properties:
        tag_id:
          type: string
          format: uuid
          description: Unique identifier for the tag
          example: c9d8e7f6-a5b4-3210-9876-543210fedcba
        company_id:
          type: string
          format: uuid
          description: Unique identifier for the company
          example: 7f22b96a-f75b-461e-9a1d-b8ff6f53f519
        tag_name:
          type: string
          description: Display name of the tag
          example: VIP Customer
        created_at:
          type: string
          format: date-time
          description: Timestamp when the tag was created
          example: '2026-08-11T12:26:00.000Z'
        updated_at:
          type: string
          format: date-time
          nullable: true
          description: Timestamp when the tag was last updated
          example: null
      required:
        - tag_id
        - company_id
        - tag_name
        - created_at
    Error:
      type: object
      description: Error response object
      properties:
        error:
          type: string
          description: Error message
          example: Invalid request parameters
        code:
          type: string
          description: Error code for programmatic handling
          example: INVALID_PARAMS
        timestamp:
          type: string
          format: date-time
          description: Timestamp when the error occurred
          example: '2023-12-01T10:30:00Z'
        path:
          type: string
          description: API endpoint path where the error occurred
          example: /v1/fetch-companies
      required:
        - error
  responses:
    UnauthorizedError:
      description: Authentication token is missing or invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized access
            code: UNAUTHORIZED
            timestamp: '2023-12-01T10:30:00Z'
            path: /v1/fetch-companies
    RateLimitError:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Too many requests, please try again later
            code: RATE_LIMIT_EXCEEDED
            timestamp: '2023-12-01T10:30:00Z'
            path: /v1/fetch-companies
      headers:
        X-RateLimit-Limit:
          description: Request limit per time window
          schema:
            type: integer
            example: 30
        X-RateLimit-Remaining:
          description: Remaining requests in current window
          schema:
            type: integer
            example: 0
        X-RateLimit-Reset:
          description: Time when the rate limit resets
          schema:
            type: integer
            example: 1701425400
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Problem encountered while fetching companies!
            code: INTERNAL_ERROR
            timestamp: '2023-12-01T10:30:00Z'
            path: /v1/fetch-companies
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Authentication token required for accessing protected endpoints.

        The token should be obtained from the main SalesCaptain authentication
        service.

````