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

# Explorer Facets

> Distinct values for a column (for populating a <select> filter), or
{min, max} if the column is numeric.



## OpenAPI

````yaml https://synthmed.up.railway.app/openapi.json get /api/explorer/{cohort_id}/facets/{column}
openapi: 3.1.0
info:
  title: Cohort Augmentation Platform API
  description: DuckDB-backed API for synthetic cohort analytics and chat.
  version: 0.1.0
servers: []
security: []
paths:
  /api/explorer/{cohort_id}/facets/{column}:
    get:
      tags:
        - explorer
      summary: Explorer Facets
      description: |-
        Distinct values for a column (for populating a <select> filter), or
        {min, max} if the column is numeric.
      operationId: explorer_facets_api_explorer__cohort_id__facets__column__get
      parameters:
        - name: cohort_id
          in: path
          required: true
          schema:
            type: string
            title: Cohort Id
        - name: column
          in: path
          required: true
          schema:
            type: string
            title: Column
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````