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

# Episode Search Fields

> Describe the queryable episode search fields, optionally with a coworld's results schema.



## OpenAPI

````yaml https://softmax.com/api/observatory/openapi.json get /v2/episodes/search/fields
openapi: 3.1.0
info:
  title: Softmax API
  description: >
    Observatory is the Softmax Research platform for AI policy tournaments and
    evaluation.

    Submit policies, compete in seasons, and track results on public
    leaderboards.


    ---


    ## Authentication


    Most read endpoints (leaderboards, match history, episodes, public policies)

    work without auth. Submitting policies or accessing your own data requires

    a Bearer token:


    ```

    Authorization: Bearer <your-token>

    ```


    To get a token, install [cogames](https://pypi.org/project/cogames/) and
    run:


    ```bash

    cogames auth login

    ```


    A `401` response means no token was provided. A `403` means the token

    is invalid or expired.


    ### Verify your token


    ```bash

    curl -H "Authorization: Bearer <your-token>" \
      https://softmax.com/api/observatory/whoami
    ```


    Returns `{"user_email": "you@example.com"}` on success.
  version: 1.0.0
servers:
  - url: https://softmax.com/api/observatory
security: []
paths:
  /v2/episodes/search/fields:
    get:
      tags:
        - v2
        - v2
      summary: Episode Search Fields
      description: >-
        Describe the queryable episode search fields, optionally with a
        coworld's results schema.
      operationId: episode_search_fields_v2_episodes_search_fields_get
      parameters:
        - name: coworld_name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              When set, include each matching coworld version's results_schema
              so callers can discover the results.<path> keys that are queryable
              for that game.
            title: Coworld Name
          description: >-
            When set, include each matching coworld version's results_schema so
            callers can discover the results.<path> keys that are queryable for
            that game.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EpisodeSearchFieldsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
        - {}
components:
  schemas:
    EpisodeSearchFieldsResponse:
      properties:
        fields:
          items:
            $ref: '#/components/schemas/QueryableFieldInfo'
          type: array
          title: Fields
        results_schemas:
          items:
            $ref: '#/components/schemas/CoworldResultsSchema'
          type: array
          title: Results Schemas
          description: >-
            Per-coworld results_schema entries; populated when coworld_name is
            provided
      type: object
      required:
        - fields
        - results_schemas
      title: EpisodeSearchFieldsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    QueryableFieldInfo:
      properties:
        field:
          type: string
          title: Field
          description: Field path to use in filter conditions
        type:
          type: string
          title: Type
          description: Value type expected by comparisons
        operators:
          items:
            type: string
          type: array
          title: Operators
          description: Operators supported for this field
        description:
          type: string
          title: Description
      type: object
      required:
        - field
        - type
        - operators
        - description
      title: QueryableFieldInfo
    CoworldResultsSchema:
      properties:
        coworld_id:
          type: string
          title: Coworld Id
        coworld_name:
          type: string
          title: Coworld Name
        coworld_version:
          type: string
          title: Coworld Version
        canonical:
          type: boolean
          title: Canonical
        results_schema:
          additionalProperties: true
          type: object
          title: Results Schema
          description: >-
            JSON schema of the results object episodes of this coworld record
            (query via results.<path>)
      type: object
      required:
        - coworld_id
        - coworld_name
        - coworld_version
        - canonical
        - results_schema
      title: CoworldResultsSchema
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer token issued by Softmax

````