> ## Documentation Index
> Fetch the complete documentation index at: https://oma-codex-339-workspace-permissions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Deployment Runs

> List Deployment Runs through the OMA API.

<Info>Every request requires `?beta=true`, `anthropic-version: 2023-06-01`, and `anthropic-beta: managed-agents-2026-04-01`.</Info>


## OpenAPI

````yaml /openapi/oma.en.json get /v1/deployment_runs
openapi: 3.1.0
info:
  title: OMA API Reference
  version: 1.0.0
  description: Open Managed Agents application API reference.
servers:
  - url: http://localhost:38080
    description: Local OMA server
security:
  - omaApiKey: []
  - omaBearer: []
paths:
  /v1/deployment_runs:
    get:
      summary: List Deployment Runs
      operationId: BetaListDeploymentRuns
      parameters:
        - name: beta
          in: query
          required: true
          description: Selects the beta API contract for this endpoint. Must be `true`.
          schema:
            type: boolean
            enum:
              - true
        - name: anthropic-version
          in: header
          required: true
          schema:
            type: string
            x-default: '2023-06-01'
        - name: anthropic-beta
          in: header
          required: true
          schema:
            type: string
            items:
              type: string
            x-stainless-override-schema:
              x-stainless-param: betas
              x-stainless-extend-default: true
              type: array
              description: Optional header to specify the beta version(s) you want to use.
              items:
                $ref: '#/components/schemas/AnthropicBeta'
            x-default: managed-agents-2026-04-01
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
          description: Maximum results per page. Default 20, maximum 1000.
        - name: page
          in: query
          required: false
          schema:
            type: string
            x-stainless-pagination-property:
              purpose: next_cursor_param
          description: >-
            Opaque pagination cursor. Pass next_page from the previous response.
            Invalid or expired cursors return 400.
        - name: deployment_id
          in: query
          required: false
          schema:
            type: string
          description: >-
            Filter to a specific deployment. Omit to list across all deployments
            in the workspace. Filtering by a non-existent deployment_id returns
            200 with empty data.
        - name: trigger_type
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/BetaManagedAgentsTriggerType'
          description: Filter runs by what triggered them. Omit to return all runs.
        - name: has_error
          in: query
          required: false
          schema:
            type: boolean
          description: >-
            Filter: true for runs with non-null error, false for runs with
            non-null session_id. Omit for all.
        - name: created_at[gte]
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/BetaTimestamp'
          description: Return runs created at or after this time (inclusive).
        - name: created_at[lte]
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/BetaTimestamp'
          description: Return runs created at or before this time (inclusive).
        - name: created_at[gt]
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/BetaTimestamp'
          description: Return runs created strictly after this time (exclusive).
        - name: created_at[lt]
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/BetaTimestamp'
          description: Return runs created strictly before this time (exclusive).
      responses:
        '200':
          description: Successful response (OK)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaManagedAgentsListDeploymentRunsData'
        '400':
          description: Invalid argument - The client specified an invalid argument
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '401':
          description: >-
            Unauthenticated - The request does not have valid authentication
            credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '403':
          description: >-
            Permission denied - The caller does not have permission to execute
            the specified operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '404':
          description: Not found - Some requested entity was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '408':
          description: >-
            Deadline exceeded - The deadline expired before the operation could
            complete
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '409':
          description: Aborted - The operation was aborted due to concurrency issue
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '412':
          description: >-
            Failed precondition - Operation was rejected because the system is
            not in required state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '413':
          description: Out of range - Operation was attempted past the valid range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '429':
          description: >-
            Resource exhausted - Some resource has been exhausted (rate
            limiting)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '431':
          description: Request header fields too large - Request metadata was too large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '499':
          description: Cancelled - The operation was cancelled by the client
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '500':
          description: Internal - Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '501':
          description: Unimplemented - The operation is not implemented or supported
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '503':
          description: Unavailable - The service is currently unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
        '504':
          description: Deadline exceeded - Upstream service did not respond in time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetaErrorResponse'
components:
  schemas:
    BetaManagedAgentsTriggerType:
      type: string
      description: What triggered a deployment run.
      enum:
        - schedule
        - manual
    BetaTimestamp:
      description: A timestamp in RFC 3339 format
      type: string
      format: date-time
    BetaManagedAgentsListDeploymentRunsData:
      description: >-
        Paginated list of deployment runs. Sorted by created_at descending (most
        recent first).
      type: object
      additionalProperties: false
      required:
        - data
      properties:
        data:
          description: List of deployment runs.
          x-stainless-pagination-property:
            purpose: items
          type: array
          items:
            $ref: '#/components/schemas/BetaManagedAgentsDeploymentRun'
        next_page:
          description: Opaque cursor for the next page. Null when no more results.
          x-stainless-pagination-property:
            purpose: next_cursor_field
          type: string
          nullable: true
    BetaErrorResponse:
      properties:
        error:
          discriminator:
            mapping:
              api_error:
                $ref: '#/components/schemas/BetaAPIError'
              authentication_error:
                $ref: '#/components/schemas/BetaAuthenticationError'
              billing_error:
                $ref: '#/components/schemas/BetaBillingError'
              invalid_request_error:
                $ref: '#/components/schemas/BetaInvalidRequestError'
              not_found_error:
                $ref: '#/components/schemas/BetaNotFoundError'
              overloaded_error:
                $ref: '#/components/schemas/BetaOverloadedError'
              permission_error:
                $ref: '#/components/schemas/BetaPermissionError'
              rate_limit_error:
                $ref: '#/components/schemas/BetaRateLimitError'
              timeout_error:
                $ref: '#/components/schemas/BetaGatewayTimeoutError'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/BetaInvalidRequestError'
            - $ref: '#/components/schemas/BetaAuthenticationError'
            - $ref: '#/components/schemas/BetaBillingError'
            - $ref: '#/components/schemas/BetaPermissionError'
            - $ref: '#/components/schemas/BetaNotFoundError'
            - $ref: '#/components/schemas/BetaRateLimitError'
            - $ref: '#/components/schemas/BetaGatewayTimeoutError'
            - $ref: '#/components/schemas/BetaAPIError'
            - $ref: '#/components/schemas/BetaOverloadedError'
          title: Error
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        type:
          const: error
          default: error
          title: Type
          type: string
      required:
        - error
        - request_id
        - type
      title: ErrorResponse
      type: object
    BetaManagedAgentsDeploymentRun:
      description: >-
        A persistent, append-only record of a single deployment execution.
        Records session creation success or failure — no session lifecycle
        tracking.
      type: object
      additionalProperties: false
      required:
        - type
        - id
        - deployment_id
        - trigger_context
        - session_id
        - error
        - agent
        - created_at
      properties:
        type:
          type: string
          enum:
            - deployment_run
        id:
          description: Unique identifier for this run (`drun_...`).
          type: string
        deployment_id:
          description: ID of the deployment that produced this run.
          type: string
        trigger_context:
          description: What triggered this run and trigger-specific metadata.
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsTriggerContext'
        session_id:
          description: >-
            Populated on success. Null on creation failure. Exactly one of
            session_id or error is non-null.
          type: string
          nullable: true
        error:
          description: >-
            Populated on creation failure. Null on success. Exactly one of
            session_id or error is non-null.
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsRunError'
          nullable: true
        agent:
          description: >-
            Snapshot of the agent at fire time. Always fully resolved —
            deployments pin agent + version.
          allOf:
            - $ref: '#/components/schemas/BetaManagedAgentsAgentReference'
        created_at:
          description: Time this run record was persisted.
          allOf:
            - $ref: '#/components/schemas/BetaTimestamp'
    BetaAPIError:
      properties:
        message:
          default: Internal server error
          title: Message
          type: string
        type:
          const: api_error
          default: api_error
          title: Type
          type: string
      required:
        - message
        - type
      title: APIError
      type: object
    BetaAuthenticationError:
      properties:
        message:
          default: Authentication error
          title: Message
          type: string
        type:
          const: authentication_error
          default: authentication_error
          title: Type
          type: string
      required:
        - message
        - type
      title: AuthenticationError
      type: object
    BetaBillingError:
      properties:
        message:
          default: Billing error
          title: Message
          type: string
        type:
          const: billing_error
          default: billing_error
          title: Type
          type: string
      required:
        - message
        - type
      title: BillingError
      type: object
    BetaInvalidRequestError:
      properties:
        message:
          default: Invalid request
          title: Message
          type: string
        type:
          const: invalid_request_error
          default: invalid_request_error
          title: Type
          type: string
      required:
        - message
        - type
      title: InvalidRequestError
      type: object
    BetaNotFoundError:
      properties:
        message:
          default: Not found
          title: Message
          type: string
        type:
          const: not_found_error
          default: not_found_error
          title: Type
          type: string
      required:
        - message
        - type
      title: NotFoundError
      type: object
    BetaOverloadedError:
      properties:
        message:
          default: Overloaded
          title: Message
          type: string
        type:
          const: overloaded_error
          default: overloaded_error
          title: Type
          type: string
      required:
        - message
        - type
      title: OverloadedError
      type: object
    BetaPermissionError:
      properties:
        message:
          default: Permission denied
          title: Message
          type: string
        type:
          const: permission_error
          default: permission_error
          title: Type
          type: string
      required:
        - message
        - type
      title: PermissionError
      type: object
    BetaRateLimitError:
      properties:
        message:
          default: Rate limited
          title: Message
          type: string
        type:
          const: rate_limit_error
          default: rate_limit_error
          title: Type
          type: string
      required:
        - message
        - type
      title: RateLimitError
      type: object
    BetaGatewayTimeoutError:
      properties:
        message:
          default: Request timeout
          title: Message
          type: string
        type:
          const: timeout_error
          default: timeout_error
          title: Type
          type: string
      required:
        - message
        - type
      title: GatewayTimeoutError
      type: object
    BetaManagedAgentsTriggerContext:
      description: >-
        Describes what triggered a deployment run, with trigger-specific
        metadata.
      type: object
      discriminator:
        propertyName: type
        mapping:
          schedule:
            $ref: '#/components/schemas/BetaManagedAgentsScheduleTriggerContext'
          manual:
            $ref: '#/components/schemas/BetaManagedAgentsManualTriggerContext'
      oneOf:
        - $ref: '#/components/schemas/BetaManagedAgentsScheduleTriggerContext'
        - $ref: '#/components/schemas/BetaManagedAgentsManualTriggerContext'
    BetaManagedAgentsRunError:
      description: >-
        Why the run failed to create a session. The type identifies the failure;
        message is human-readable detail.
      type: object
      discriminator:
        propertyName: type
        mapping:
          environment_archived_error:
            $ref: '#/components/schemas/BetaManagedAgentsEnvironmentArchivedRunError'
          agent_archived_error:
            $ref: '#/components/schemas/BetaManagedAgentsAgentArchivedRunError'
          environment_not_found_error:
            $ref: '#/components/schemas/BetaManagedAgentsEnvironmentNotFoundRunError'
          vault_not_found_error:
            $ref: '#/components/schemas/BetaManagedAgentsVaultNotFoundRunError'
          vault_archived_error:
            $ref: '#/components/schemas/BetaManagedAgentsVaultArchivedRunError'
          file_not_found_error:
            $ref: '#/components/schemas/BetaManagedAgentsFileNotFoundRunError'
          memory_store_archived_error:
            $ref: '#/components/schemas/BetaManagedAgentsMemoryStoreArchivedRunError'
          skill_not_found_error:
            $ref: '#/components/schemas/BetaManagedAgentsSkillNotFoundRunError'
          session_resource_not_found_error:
            $ref: >-
              #/components/schemas/BetaManagedAgentsSessionResourceNotFoundRunError
          workspace_archived_error:
            $ref: '#/components/schemas/BetaManagedAgentsWorkspaceArchivedRunError'
          organization_disabled_error:
            $ref: '#/components/schemas/BetaManagedAgentsOrganizationDisabledRunError'
          session_rate_limited_error:
            $ref: '#/components/schemas/BetaManagedAgentsSessionRateLimitedRunError'
          session_creation_rejected_error:
            $ref: >-
              #/components/schemas/BetaManagedAgentsSessionCreationRejectedRunError
          unknown_error:
            $ref: '#/components/schemas/BetaManagedAgentsUnknownRunError'
          self_hosted_resources_unsupported_error:
            $ref: >-
              #/components/schemas/BetaManagedAgentsSelfHostedResourcesUnsupportedRunError
          mcp_egress_blocked_error:
            $ref: '#/components/schemas/BetaManagedAgentsMcpEgressBlockedRunError'
      oneOf:
        - $ref: '#/components/schemas/BetaManagedAgentsEnvironmentArchivedRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsAgentArchivedRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsEnvironmentNotFoundRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsVaultNotFoundRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsVaultArchivedRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsFileNotFoundRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsMemoryStoreArchivedRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsSkillNotFoundRunError'
        - $ref: >-
            #/components/schemas/BetaManagedAgentsSessionResourceNotFoundRunError
        - $ref: '#/components/schemas/BetaManagedAgentsWorkspaceArchivedRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsOrganizationDisabledRunError'
        - $ref: '#/components/schemas/BetaManagedAgentsSessionRateLimitedRunError'
        - $ref: >-
            #/components/schemas/BetaManagedAgentsSessionCreationRejectedRunError
        - $ref: '#/components/schemas/BetaManagedAgentsUnknownRunError'
        - $ref: >-
            #/components/schemas/BetaManagedAgentsSelfHostedResourcesUnsupportedRunError
        - $ref: '#/components/schemas/BetaManagedAgentsMcpEgressBlockedRunError'
    BetaManagedAgentsAgentReference:
      description: A resolved agent reference with a concrete version.
      type: object
      additionalProperties: false
      required:
        - id
        - type
        - version
      properties:
        id:
          type: string
          examples:
            - agent_011CZkYqphY8vELVzwCUpqiQ
        type:
          type: string
          enum:
            - agent
          examples:
            - agent
        version:
          type: integer
          format: int32
          examples:
            - 1
      example:
        type: agent
        id: agent_011CZkYqphY8vELVzwCUpqiQ
        version: 1
    BetaManagedAgentsScheduleTriggerContext:
      description: The run was fired by the deployment's cron schedule.
      type: object
      additionalProperties: false
      required:
        - type
        - scheduled_at
      properties:
        type:
          type: string
          enum:
            - schedule
        scheduled_at:
          description: >-
            The UTC instant at which the cron expression matched in the
            configured timezone, before jitter is applied. At most one run is
            recorded per (deployment_id, scheduled_at) pair.
          allOf:
            - $ref: '#/components/schemas/BetaTimestamp'
    BetaManagedAgentsManualTriggerContext:
      description: >-
        The run was started manually by creating a session directly against the
        deployment.
      type: object
      additionalProperties: false
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - manual
    BetaManagedAgentsEnvironmentArchivedRunError:
      description: The deployment's environment was archived.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - environment_archived_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsAgentArchivedRunError:
      description: The deployment's agent was archived.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - agent_archived_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsEnvironmentNotFoundRunError:
      description: The deployment's environment no longer exists.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - environment_not_found_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsVaultNotFoundRunError:
      description: A vault referenced by the deployment no longer exists.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - vault_not_found_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsVaultArchivedRunError:
      description: A vault referenced by the deployment is archived.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - vault_archived_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsFileNotFoundRunError:
      description: A file resource referenced by the deployment no longer exists.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - file_not_found_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsMemoryStoreArchivedRunError:
      description: A memory store referenced by the deployment is archived.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - memory_store_archived_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsSkillNotFoundRunError:
      description: A skill referenced by the deployment's agent no longer exists.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - skill_not_found_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsSessionResourceNotFoundRunError:
      description: A referenced resource no longer exists and its kind was not reported.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - session_resource_not_found_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsWorkspaceArchivedRunError:
      description: The deployment's workspace was archived.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - workspace_archived_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsOrganizationDisabledRunError:
      description: The deployment's organization is disabled.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - organization_disabled_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsSessionRateLimitedRunError:
      description: >-
        Session creation was rejected due to rate limiting. The schedule keeps
        firing; subsequent runs may succeed.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - session_rate_limited_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsSessionCreationRejectedRunError:
      description: >-
        The session create request was rejected with a non-retryable validation
        error.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - session_creation_rejected_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsUnknownRunError:
      description: >-
        An unknown or unexpected error caused the run to fail. A fallback
        variant; clients that do not recognize a new error type can match on
        message alone.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - unknown_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsSelfHostedResourcesUnsupportedRunError:
      description: >-
        The deployment configures resources, but its environment is self-hosted
        and cannot mount them.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - self_hosted_resources_unsupported_error
        message:
          description: Human-readable error description.
          type: string
    BetaManagedAgentsMcpEgressBlockedRunError:
      description: >-
        An MCP server host used by the deployment's agent is blocked by the
        environment's network policy.
      type: object
      additionalProperties: false
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - mcp_egress_blocked_error
        message:
          description: Human-readable error description.
          type: string
  securitySchemes:
    omaApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: OMA workspace API key.
      x-default: sk-ant-local-default
    omaBearer:
      type: http
      scheme: bearer
      description: OMA workspace API key sent as a bearer token.

````