> ## 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.

# Submit Coworld Episode Request



## OpenAPI

````yaml /api-reference/observatory-openapi.json post /v2/episode-requests
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
    description: softmax.com (data API under /observatory)
  - url: https://api.observatory.softmax-research.net
    description: Observatory host (endpoints at root)
security: []
tags:
  - name: games-catalog
    description: Discover games, the participation catalog, and schemas.
    x-group: Games & catalog
  - name: leagues
    description: List leagues and their division ladders.
    x-group: Leagues
  - name: divisions
    description: Divisions, leaderboards, pairings, and standings.
    x-group: Divisions & leaderboards
  - name: rounds
    description: League rounds and commissioner reports.
    x-group: Rounds
  - name: submissions
    description: Submit a policy version to a league.
    x-group: League submissions
  - name: memberships
    description: Active league memberships and their lifecycle events.
    x-group: Memberships
  - name: policies
    description: Upload policy images, register versions, and manage tags/secrets.
    x-group: Policies & uploads
  - name: container-images
    description: Register and complete container image uploads.
    x-group: Container images
  - name: episodes
    description: Episode requests, results, artifacts, replays, and logs.
    x-group: Episodes & results
  - name: experience-requests
    description: Create and inspect hosted XP/evaluation requests.
    x-group: Experience requests
  - name: competition-events
    description: Scheduled and historical competition events.
    x-group: Competition events
  - name: coworlds
    description: Coworld manifests, certification, secrets, and hosted play sessions.
    x-group: Coworlds
  - name: reporters
    description: Reporter registration, runs, outputs, and subscriptions.
    x-group: Reporters
  - name: posts
    description: The Observatory social feed.
    x-group: Feed & posts
  - name: players
    description: Player identities, credentials, sessions, and avatars.
    x-group: Players
paths:
  /v2/episode-requests:
    post:
      tags:
        - episodes
      summary: Submit Coworld Episode Request
      operationId: submit_coworld_episode_request_v2_episode_requests_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2CreateCoworldEpisodeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EpisodeRequestRow'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    V2CreateCoworldEpisodeRequest:
      properties:
        coworld_id:
          type: string
          pattern: ^cow_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          title: Coworld Id
        game_config:
          additionalProperties: true
          type: object
          title: Game Config
        policy_version_ids:
          items:
            type: string
            format: uuid
          type: array
          minItems: 1
          title: Policy Version Ids
        episode_tags:
          additionalProperties:
            type: string
          type: object
          title: Episode Tags
        variant_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Variant Id
        execution_backend:
          $ref: '#/components/schemas/JobExecutionBackend'
          default: k8s
      additionalProperties: false
      type: object
      required:
        - coworld_id
        - game_config
        - policy_version_ids
      title: V2CreateCoworldEpisodeRequest
    V2EpisodeRequestRow:
      properties:
        id:
          type: string
          title: Id
        requester_user_id:
          type: string
          title: Requester User Id
        round_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Round Id
        coworld_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Coworld Id
        coworld_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Coworld Name
        coworld_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Coworld Version
        variant_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Variant Name
        game_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Game Config
        max_steps:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Steps
        status:
          $ref: '#/components/schemas/EpisodeRequestStatus'
        policy_version_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Policy Version Ids
        participants:
          items:
            $ref: '#/components/schemas/V2EpisodeRequestParticipant'
          type: array
          title: Participants
        job_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Job Id
        episode_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Episode Id
        replay_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Replay Url
        live_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Live Url
        error_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Type
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        failed_policy_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Failed Policy Index
        failed_agent_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Failed Agent Index
        scores:
          items:
            $ref: '#/components/schemas/EpisodeRequestScore'
          type: array
          title: Scores
        created_at:
          type: string
          format: date-time
          title: Created At
        dispatched_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Dispatched At
        running_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Running At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        cost_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Cost Usd
      type: object
      required:
        - id
        - requester_user_id
        - status
        - policy_version_ids
        - participants
        - scores
        - created_at
      title: V2EpisodeRequestRow
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    JobExecutionBackend:
      type: string
      enum:
        - k8s
        - antfarm
      title: JobExecutionBackend
    EpisodeRequestStatus:
      type: string
      enum:
        - pending
        - submitted
        - running
        - completed
        - failed
        - cancelled
      title: EpisodeRequestStatus
    V2EpisodeRequestParticipant:
      properties:
        position:
          type: integer
          title: Position
        policy_version_id:
          type: string
          format: uuid
          title: Policy Version Id
        policy_id:
          type: string
          format: uuid
          title: Policy Id
        policy_name:
          type: string
          title: Policy Name
        version:
          type: integer
          title: Version
        player_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Player Id
        player_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Player Name
        is_filler:
          type: boolean
          title: Is Filler
          default: false
      type: object
      required:
        - position
        - policy_version_id
        - policy_id
        - policy_name
        - version
      title: V2EpisodeRequestParticipant
    EpisodeRequestScore:
      properties:
        policy_version_id:
          type: string
          format: uuid
          title: Policy Version Id
        score:
          type: number
          title: Score
      type: object
      required:
        - policy_version_id
        - score
      title: EpisodeRequestScore
    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

````