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

# RecordAllocationDecisionAPI mirrors erdo_record_allocation_decision: record


> that the caller is acting against the allocator's recommendation for one bet. Experiment-scoped (not workstream-scoped) because the overridden bet is a variant of one experiment — the same identity the ledger's allocator\_recommendation names.




## OpenAPI

````yaml /api/openapi.json post /v1/experiments/{experimentSlug}/allocation-decisions
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/experiments/{experimentSlug}/allocation-decisions:
    post:
      summary: >
        RecordAllocationDecisionAPI mirrors erdo_record_allocation_decision:
        record
      description: >
        that the caller is acting against the allocator's recommendation for one
        bet. Experiment-scoped (not workstream-scoped) because the overridden
        bet is a variant of one experiment — the same identity the ledger's
        allocator\_recommendation names.
      operationId: POST:mcp.RecordAllocationDecisionAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: experimentSlug
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                chosen_action:
                  type: string
                reason:
                  type: string
                recommended_action:
                  type: string
                variant_key:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  chosen_action:
                    type: string
                  experiment_slug:
                    type: string
                  observation_id:
                    type: string
                  recommended_action:
                    type: string
                  recorded:
                    type: boolean
                  variant_key:
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````