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

# Resume a paused run

> Continue a run once every approval it asked for is decided.



## OpenAPI

````yaml /docs/reference/openapi.json post /runs/{run_id}/resume
openapi: 3.1.0
info:
  description: >-
    The HTTP API of an agent served with `omniserve run --agent agent.py`: runs,
    approvals, budgets, background tasks, sessions and the evidence of every
    run.
  title: OmniServe
  version: latest
servers:
  - description: omniserve run, locally
    url: http://localhost:8000
security: []
paths:
  /runs/{run_id}/resume:
    post:
      tags:
        - Runs
      summary: Resume a paused run
      description: Continue a run once every approval it asked for is decided.
      operationId: resume_run_runs__run_id__resume_post
      parameters:
        - in: path
          name: run_id
          required: true
          schema:
            title: Run Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResponse'
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    RunResponse:
      description: Response model for synchronous agent run.
      properties:
        agent_name:
          description: Name of the agent
          title: Agent Name
          type: string
        approvals:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Approvals a paused run is waiting for
          title: Approvals
        budget_request:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: The budget a waiting run ran out of, and what it needs
          title: Budget Request
        guardrail_result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Guardrail Result
        metric:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: Optional metrics for this run
          title: Metric
        response:
          anyOf:
            - type: string
            - type: 'null'
          description: Agent's response (none while the run awaits approval)
          title: Response
        run_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Runtime run ID for this run
          title: Run Id
        session_id:
          description: Session ID for this conversation
          title: Session Id
          type: string
        status:
          default: success
          description: >-
            Runtime outcome: success, error, cancelled, awaiting_approval, or
            awaiting_budget
          title: Status
          type: string
        termination_reason:
          anyOf:
            - type: string
            - type: 'null'
          description: Why execution terminated
          title: Termination Reason
        trace_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Telemetry trace ID for this run
          title: Trace Id
      required:
        - session_id
        - agent_name
      title: RunResponse
      type: object
    ErrorResponse:
      description: Standard error response model.
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: Additional error details
          title: Detail
        error:
          description: Error type
          title: Error
          type: string
        message:
          description: Error message
          title: Message
          type: string
      required:
        - error
        - message
      title: ErrorResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````