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

# Create Experience Request



## OpenAPI

````yaml https://softmax.com/api/observatory/openapi.json post /v2/experience-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
security: []
paths:
  /v2/experience-requests:
    post:
      tags:
        - v2
        - v2
      summary: Create Experience Request
      operationId: create_experience_request_v2_experience_requests_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2CreateExperienceRequestRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2ExperienceRequestDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    V2CreateExperienceRequestRequest:
      properties:
        idempotency_key:
          anyOf:
            - type: string
              maxLength: 200
              minLength: 5
            - type: 'null'
          title: Idempotency Key
        private:
          type: boolean
          title: Private
          description: >-
            Restrict the XP and its derived episodes and artifacts to the
            requester.
          default: false
        llm_routing_override:
          anyOf:
            - type: string
              enum:
                - openrouter
                - bedrock
            - type: 'null'
          title: Llm Routing Override
        coworld_id:
          anyOf:
            - type: string
              pattern: >-
                ^cow_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            - type: 'null'
          title: Coworld Id
          description: Direct Coworld target.
        variant_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Variant Id
          description: Direct Coworld variant.
        target:
          anyOf:
            - $ref: '#/components/schemas/V2ExperienceRequestTarget'
            - type: 'null'
          description: Direct Coworld target or league/division selector.
        game_config_overrides:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Game Config Overrides
          description: >-
            Shallow game config override validated against the resolved Coworld
            schema.
        game_config_overlay_secret:
          anyOf:
            - type: string
              pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$
            - type: 'null'
          title: Game Config Overlay Secret
          description: >-
            Coworld-owner-published private coworld.game_config_overlay.v1
            object to merge before public overrides.
        state:
          anyOf:
            - $ref: '#/components/schemas/V2CoworldState'
            - type: 'null'
          description: >-
            Typed game-owned state selection. Omit it for the Coworld's normal
            new-state start; head selects live mutable state and snapshot
            selects an immutable checkpoint.
        roster:
          items:
            $ref: '#/components/schemas/V2RosterParticipant'
          type: array
          title: Roster
          description: One participant per seat.
        included_players:
          items:
            type: string
          type: array
          title: Included Players
          description: >-
            If non-empty, restrict the top_n/random champion pool to only these
            players, as player IDs ('ply_...') or player names. Players named by
            policy_ref roster seats are always included. Entries that match no
            player are ignored.
        excluded_players:
          items:
            type: string
          type: array
          title: Excluded Players
          description: >-
            Players to drop from the top_n/random champion pool entirely, as
            player IDs ('ply_...') or player names. Excluded players never
            appear in the pool, even after it regenerates mid-episode. Entries
            that match no player are ignored. Applied after included_players.
        num_episodes:
          type: integer
          maximum: 100
          minimum: 1
          title: Num Episodes
          default: 1
        notes:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Notes
        execution_backend:
          type: string
          const: k8s
          title: Execution Backend
          default: k8s
        reporters:
          items:
            $ref: '#/components/schemas/ReporterBindingSpec'
          type: array
          maxItems: 10
          title: Reporters
          description: >-
            Reporter bindings to run over this request's episodes after
            completion. Each binding may include an optional dependency graph;
            runs are billed to the requester.
      additionalProperties: false
      type: object
      required:
        - roster
      title: V2CreateExperienceRequestRequest
    V2ExperienceRequestDetail:
      properties:
        id:
          type: string
          title: Id
        requester_user_id:
          type: string
          title: Requester User Id
        requester:
          anyOf:
            - type: string
            - type: 'null'
          title: Requester
        coworld_id:
          type: string
          title: Coworld Id
        coworld_name:
          type: string
          title: Coworld Name
        coworld_version:
          type: string
          title: Coworld Version
        variant_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Variant Id
        status:
          $ref: '#/components/schemas/ExperienceRequestStatus'
        episode_count:
          type: integer
          title: Episode Count
        pending_count:
          type: integer
          title: Pending Count
        submitted_count:
          type: integer
          title: Submitted Count
        running_count:
          type: integer
          title: Running Count
        completed_count:
          type: integer
          title: Completed Count
        failed_count:
          type: integer
          title: Failed Count
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        created_at:
          type: string
          format: date-time
          title: Created At
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        episodes:
          items:
            $ref: '#/components/schemas/V2EpisodeRequestRow'
          type: array
          title: Episodes
        requested:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Requested
        cost_preview:
          anyOf:
            - $ref: '#/components/schemas/V2ExperienceRequestCostPreview'
            - type: 'null'
      type: object
      required:
        - id
        - requester_user_id
        - coworld_id
        - coworld_name
        - coworld_version
        - variant_id
        - status
        - episode_count
        - pending_count
        - submitted_count
        - running_count
        - completed_count
        - failed_count
        - error
        - created_at
        - started_at
        - completed_at
        - episodes
      title: V2ExperienceRequestDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    V2ExperienceRequestTarget:
      properties:
        coworld_id:
          anyOf:
            - type: string
              pattern: >-
                ^cow_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            - type: 'null'
          title: Coworld Id
          description: Direct Coworld target for ad hoc runs.
        variant_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Variant Id
          description: Coworld variant for direct Coworld targets.
        league_id:
          anyOf:
            - type: string
              pattern: >-
                ^league_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            - type: 'null'
          title: League Id
          description: Target league; resolves its canonical Coworld.
        league_name:
          anyOf:
            - type: string
            - type: 'null'
          title: League Name
          description: Target league name; ambiguous names must use league_id.
        division_id:
          anyOf:
            - type: string
              pattern: >-
                ^div_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            - type: 'null'
          title: Division Id
          description: Target division; resolves its league and Coworld.
        division_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Division Name
          description: Target division name within league_id or league_name.
      additionalProperties: false
      type: object
      title: V2ExperienceRequestTarget
    V2CoworldState:
      properties:
        mode:
          type: string
          enum:
            - head
            - snapshot
          title: Mode
        scope:
          type: string
          enum:
            - player
            - world
          title: Scope
          default: player
        participants:
          items:
            $ref: '#/components/schemas/V2CoworldStateParticipant'
          type: array
          title: Participants
      additionalProperties: false
      type: object
      required:
        - mode
      title: V2CoworldState
    V2RosterParticipant:
      properties:
        player:
          $ref: '#/components/schemas/V2RosterPlayer'
        slot:
          type: integer
          minimum: -1
          title: Slot
          description: >-
            -1 (default) = round-robin through open slots; otherwise pinned to
            this slot.
          default: -1
      additionalProperties: false
      type: object
      required:
        - player
      title: V2RosterParticipant
    ReporterBindingSpec:
      properties:
        reporter:
          oneOf:
            - $ref: '#/components/schemas/PinnedReporterRef-Input'
            - $ref: '#/components/schemas/LatestReporterRef-Input'
          title: Reporter
          discriminator:
            propertyName: kind
            mapping:
              latest:
                $ref: '#/components/schemas/LatestReporterRef-Input'
              version:
                $ref: '#/components/schemas/PinnedReporterRef-Input'
        params:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Params
        limits:
          anyOf:
            - $ref: '#/components/schemas/ReporterLimitsOverride'
            - type: 'null'
        dependencies:
          items:
            $ref: '#/components/schemas/ReporterDependencySpec-Input'
          type: array
          title: Dependencies
      additionalProperties: false
      type: object
      required:
        - reporter
      title: ReporterBindingSpec
    ExperienceRequestStatus:
      type: string
      enum:
        - pending
        - submitted
        - running
        - completed
        - failed
        - cancelled
      title: ExperienceRequestStatus
    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
        max_steps:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Steps
        job_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Job Index
        status:
          $ref: '#/components/schemas/EpisodeRequestStatus'
        policy_version_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Policy Version Ids
        participants:
          items:
            oneOf:
              - $ref: '#/components/schemas/V2EpisodeRequestPolicyParticipant'
              - $ref: '#/components/schemas/V2EpisodeRequestHumanParticipant'
            discriminator:
              propertyName: kind
              mapping:
                human:
                  $ref: '#/components/schemas/V2EpisodeRequestHumanParticipant'
                policy:
                  $ref: '#/components/schemas/V2EpisodeRequestPolicyParticipant'
          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
        participant_scores:
          items:
            $ref: '#/components/schemas/CoworldEpisodeParticipantScore'
          type: array
          title: Participant 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
        game_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Game Config
      type: object
      required:
        - id
        - requester_user_id
        - status
        - policy_version_ids
        - participants
        - scores
        - created_at
      title: V2EpisodeRequestRow
    V2ExperienceRequestCostPreview:
      properties:
        estimated_cost_credits:
          type: number
          title: Estimated Cost Credits
        player_pod_llm_spend_limit_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Player Pod Llm Spend Limit Usd
      type: object
      required:
        - estimated_cost_credits
        - player_pod_llm_spend_limit_usd
      title: V2ExperienceRequestCostPreview
      description: Cost expectations for a just-created experience request (spec 0080 §3).
    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
    V2CoworldStateParticipant:
      properties:
        player_id:
          type: string
          minLength: 1
          title: Player Id
          description: Stable player identity whose game-owned state is selected.
      additionalProperties: false
      type: object
      required:
        - player_id
      title: V2CoworldStateParticipant
    V2RosterPlayer:
      properties:
        policy_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Policy Ref
          description: Policy label 'name:vN' or a raw policy_version UUID.
        top_n:
          anyOf:
            - type: integer
              maximum: 100
              minimum: 1
            - type: 'null'
          title: Top N
          description: Draw from the target league/division's top-N champions.
        random:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Random
          description: >-
            If true, fill with a random champion from the target league for each
            episode.
      additionalProperties: false
      type: object
      title: V2RosterPlayer
      description: Exactly one roster player selector must be set.
    PinnedReporterRef-Input:
      properties:
        kind:
          type: string
          const: version
          title: Kind
          default: version
        reporter_version_id:
          type: string
          pattern: ^rv_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          title: Reporter Version Id
      additionalProperties: false
      type: object
      required:
        - reporter_version_id
      title: PinnedReporterRef
    LatestReporterRef-Input:
      properties:
        kind:
          type: string
          const: latest
          title: Kind
          default: latest
        reporter_id:
          type: string
          pattern: ^rptr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          title: Reporter Id
      additionalProperties: false
      type: object
      required:
        - reporter_id
      title: LatestReporterRef
    ReporterLimitsOverride:
      properties:
        memory_mib:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Memory Mib
        guest_cpu_seconds:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Guest Cpu Seconds
        wall_clock_seconds:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Wall Clock Seconds
        scratch_mib:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Scratch Mib
        tool_calls:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Tool Calls
        llm_usd:
          anyOf:
            - type: number
              exclusiveMinimum: 0
            - type: 'null'
          title: Llm Usd
        artifact_read_mib:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Artifact Read Mib
        output_mib:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Output Mib
      additionalProperties: false
      type: object
      title: ReporterLimitsOverride
    ReporterDependencySpec-Input:
      properties:
        reporter:
          oneOf:
            - $ref: '#/components/schemas/PinnedReporterRef-Input'
            - $ref: '#/components/schemas/LatestReporterRef-Input'
          title: Reporter
          discriminator:
            propertyName: kind
            mapping:
              latest:
                $ref: '#/components/schemas/LatestReporterRef-Input'
              version:
                $ref: '#/components/schemas/PinnedReporterRef-Input'
        params:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Params
        limits:
          anyOf:
            - $ref: '#/components/schemas/ReporterLimitsOverride'
            - type: 'null'
        reuse:
          $ref: '#/components/schemas/ReporterDependencyReuse'
        dependencies:
          items:
            additionalProperties: true
            type: object
          type: array
          description: Nested prerequisites using this same ReporterDependencySpec shape.
      additionalProperties: false
      type: object
      required:
        - reporter
      title: ReporterDependencySpec
    EpisodeRequestStatus:
      type: string
      enum:
        - pending
        - submitted
        - running
        - completed
        - failed
        - cancelled
      title: EpisodeRequestStatus
    V2EpisodeRequestPolicyParticipant:
      properties:
        position:
          type: integer
          title: Position
        kind:
          type: string
          const: policy
          title: Kind
          default: policy
        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
        is_seed:
          type: boolean
          title: Is Seed
          default: false
      type: object
      required:
        - position
        - policy_version_id
        - policy_id
        - policy_name
        - version
      title: V2EpisodeRequestPolicyParticipant
    V2EpisodeRequestHumanParticipant:
      properties:
        position:
          type: integer
          title: Position
        kind:
          type: string
          const: human
          title: Kind
          default: human
        user_id:
          type: string
          title: User Id
        name:
          type: string
          title: Name
      type: object
      required:
        - position
        - user_id
        - name
      title: V2EpisodeRequestHumanParticipant
    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
    CoworldEpisodeParticipantScore:
      properties:
        position:
          type: integer
          minimum: 0
          title: Position
        score:
          type: number
          title: Score
      additionalProperties: false
      type: object
      required:
        - position
        - score
      title: CoworldEpisodeParticipantScore
    ReporterDependencyReuse:
      properties:
        completed:
          type: boolean
          title: Completed
          default: true
        max_age_seconds:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Max Age Seconds
        in_flight:
          type: boolean
          title: In Flight
          default: true
      additionalProperties: false
      type: object
      title: ReporterDependencyReuse
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer token issued by Softmax

````