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

# Search company domains

> Search for company domains associated with calls on your team. Returns matching domains with call counts. Use the results to populate `companyDomains` filters.



## OpenAPI

````yaml /api/openapi.yaml get /api/public/v1/filters/company-domains
openapi: 3.1.0
info:
  title: OnePerfectSlice API
  version: 1.0.0
  description: |
    Programmatic access to OnePerfectSlice. Authenticate with a team-scoped
    API key (Bearer sk_...) obtained from Org Settings → API Keys.
servers:
  - url: https://app.oneperfectslice.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /api/public/v1/filters/company-domains:
    get:
      tags:
        - Filters
      summary: Search company domains
      description: >-
        Search for company domains associated with calls on your team. Returns
        matching domains with call counts. Use the results to populate
        `companyDomains` filters.
      operationId: getCompanyDomains
      parameters:
        - name: q
          in: query
          required: false
          schema:
            type: string
          description: Optional prefix search string
      responses:
        '200':
          description: Team-scoped company domain options
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - companyDomains
                    properties:
                      companyDomains:
                        type: array
                        items:
                          $ref: '#/components/schemas/PublicCompanyDomainOption'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          description: Filter lookup request timed out
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: FILTER_LOOKUP_TIMEOUT
                  message: Filter lookup request timed out
      security:
        - bearerAuth: []
components:
  schemas:
    PublicCompanyDomainOption:
      type: object
      required:
        - id
        - displayName
        - callCount
      properties:
        id:
          type: string
          example: acme.com
        displayName:
          type: string
          example: acme.com
        callCount:
          type: integer
          example: 28
    ApiError:
      type: object
      description: Standard error envelope for all public API error responses
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable UPPER_SNAKE_CASE error code
              example: INVALID_TOKEN
            message:
              type: string
              description: Human-readable error description
              example: Token is invalid
            details:
              type: object
              description: Optional additional error context
              additionalProperties: true
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            missingToken:
              value:
                error:
                  code: MISSING_TOKEN
                  message: Authorization header with Bearer token is required
            invalidToken:
              value:
                error:
                  code: INVALID_TOKEN
                  message: Token is invalid
            tokenRevoked:
              value:
                error:
                  code: TOKEN_REVOKED
                  message: Token has been revoked
            tokenExpired:
              value:
                error:
                  code: TOKEN_EXPIRED
                  message: Token has expired
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with sk_ prefix. Create one in Org Settings → API Keys.
      x-default: sk_your_api_key

````