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

# Search dimension values

> Full-text search across dimension names and their values. Unlike `GET /dimensions` this queries the billing warehouse live, so it is slower and costlier — use it for type-ahead, not to enumerate dimensions.



## OpenAPI

````yaml /api-reference/openapi.json get /dimensions/search
openapi: 3.0.0
info:
  title: Costory
  version: '1.0'
  description: API Documentation
servers:
  - url: ''
    description: Production server
security: []
paths:
  /dimensions/search:
    get:
      tags:
        - Dimensions
      summary: Search dimension values
      description: >-
        Full-text search across dimension names and their values. Unlike `GET
        /dimensions` this queries the billing warehouse live, so it is slower
        and costlier — use it for type-ahead, not to enumerate dimensions.
      operationId: searchDimensions
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 255
          required: true
          name: q
          in: query
      responses:
        '200':
          description: Dimensions whose name or values match the query
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Dimension'
        '400':
          description: Missing or too long query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequest'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
      security:
        - bearerAuth: []
components:
  schemas:
    Dimension:
      type: object
      properties:
        name:
          type: string
        label:
          type: string
        description:
          type: string
        valueEditorType:
          type: string
          enum:
            - multiselect
        values:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              label:
                type: string
              proportionCostAllocated:
                type: number
            required:
              - name
              - label
              - proportionCostAllocated
        operators:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              value:
                type: string
              label:
                type: string
            required:
              - name
              - value
              - label
        groupTitle:
          type: string
      required:
        - name
        - label
        - valueEditorType
        - values
        - operators
        - groupTitle
    BadRequest:
      type: object
      properties:
        error:
          type: string
          description: Error code
        reason:
          type: string
          description: Human-readable reason
        details:
          description: Additional details
        summary:
          type: string
          description: Optional short summary
      required:
        - error
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          description: Unauthorized error message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or Clerk ak_* API key
      description: >-
        Send `Authorization: Bearer <credential>` using either a Clerk session
        JWT or a Clerk API key (`ak_*`). API keys may identify a user (`user_*`)
        or organization (`org_*`) principal and are generated in the Clerk
        Dashboard under API keys.

````