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

# Get run payload

> **Auth:** organization API key (`read` scope or higher) or a signed-in user.

The raw request and response bodies of one run, kept for a failed provider call or while the agent keeps provider requests and responses. Bodies only, never headers.



## OpenAPI

````yaml https://cp.xenovia.io/openapi.json get /api/v1/traces/{trace_id}/runs/{run_id}/payload
openapi: 3.1.0
info:
  title: Xenovia Control Plane API
  version: 1.0.0
  description: >-
    Management API for agents, providers, policies, telemetry, alerts and
    organization settings.
servers:
  - url: https://cp.xenovia.io
    description: Production
security:
  - BearerAuth: []
paths:
  /api/v1/traces/{trace_id}/runs/{run_id}/payload:
    get:
      tags:
        - sessions
      summary: Get run payload
      description: >-
        **Auth:** organization API key (`read` scope or higher) or a signed-in
        user.


        The raw request and response bodies of one run, kept for a failed
        provider call or while the agent keeps provider requests and responses.
        Bodies only, never headers.
      operationId: run_payload_detail_api_v1_traces__trace_id__runs__run_id__payload_get
      parameters:
        - name: trace_id
          in: path
          required: true
          schema:
            type: string
            title: Trace Id
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunPayload'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RunPayload:
      properties:
        run_id:
          type: string
          title: Run Id
        trace_id:
          type: string
          title: Trace Id
        agent_id:
          type: string
          format: uuid
          title: Agent Id
        created_at:
          type: string
          format: date-time
          title: Created At
        request_body:
          type: string
          title: Request Body
          default: ''
        response_body:
          type: string
          title: Response Body
          default: ''
        response_status:
          type: integer
          title: Response Status
          default: 0
        request_truncated:
          type: boolean
          title: Request Truncated
          default: false
        response_truncated:
          type: boolean
          title: Response Truncated
          default: false
      type: object
      required:
        - run_id
        - trace_id
        - agent_id
        - created_at
      title: RunPayload
      description: >-
        One run's raw provider bodies (GET
        /traces/{trace_id}/runs/{run_id}/payload):

        what was sent upstream and what the provider answered, kept for a failed

        call or while the agent's debug window was open. Never headers.
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token: an organization API key (`ak_…`) created under Settings →
        API Keys, or a dashboard user session token. Agent keys (`xe_…`) are not
        accepted here. Endpoints marked as user-only in their description reject
        organization keys with `403`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.