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

# Get execution details by id



## OpenAPI

````yaml api-reference/endpoints/executions/api-reference/openapi.json get /api/v1/executions/{execution_id}
openapi: 3.1.0
info:
  title: Polos Orchestrator API
  description: API for the Polos durable execution platform for AI agents
  contact:
    name: Polos Team
    url: https://github.com/polos-dev/polos
  license:
    name: ''
  version: 1.0.0
servers:
  - url: /
    description: Current server
security: []
tags:
  - name: Health
    description: Health check endpoints
  - name: Projects
    description: Project management endpoints
  - name: Agents
    description: Agent definition management
  - name: Tools
    description: Tool definition management
  - name: Workflows
    description: Workflow management
  - name: Executions
    description: Workflow execution management
  - name: Traces
    description: Observability traces
  - name: Events
    description: Event publishing and streaming
  - name: Event Triggers
    description: Event-based workflow triggers
  - name: Schedules
    description: Scheduled workflow execution
  - name: Workers
    description: Worker registration and management
  - name: Deployments
    description: Deployment management
paths:
  /api/v1/executions/{execution_id}:
    get:
      tags:
        - Executions
      summary: Get execution details by ID
      operationId: get_execution
      parameters:
        - name: execution_id
          in: path
          description: Execution ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Execution details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecutionResponse'
        '400':
          description: Invalid execution ID
        '404':
          description: Execution not found
        '500':
          description: Internal server error
      security:
        - bearer_auth: []
        - cookie_auth: []
components:
  schemas:
    ExecutionResponse:
      type: object
      description: Execution details response
      required:
        - id
        - workflow_id
        - status
        - payload
        - created_at
        - retry_count
      properties:
        assigned_to_worker:
          type:
            - string
            - 'null'
          description: Assigned worker ID
        batch_id:
          type:
            - string
            - 'null'
          description: Batch ID
        cancelled_at:
          type:
            - string
            - 'null'
          description: Cancellation timestamp (RFC3339)
        cancelled_by:
          type:
            - string
            - 'null'
          description: Cancelled by (user or system)
        completed_at:
          type:
            - string
            - 'null'
          description: Completion timestamp (RFC3339)
        concurrency_key:
          type:
            - string
            - 'null'
          description: Concurrency key
        created_at:
          type: string
          description: Creation timestamp (RFC3339)
        deployment_id:
          type:
            - string
            - 'null'
          description: Deployment ID
        error:
          type:
            - string
            - 'null'
          description: Error message if failed
        id:
          type: string
          description: Execution ID
        output_schema_name:
          type:
            - string
            - 'null'
          description: Output schema name
        parent_execution_id:
          type:
            - string
            - 'null'
          description: Parent execution ID
        payload:
          description: Input payload
        queue_name:
          type:
            - string
            - 'null'
          description: Queue name
        result:
          description: Execution result
        retry_count:
          type: integer
          format: int32
          description: Retry count
        root_execution_id:
          type:
            - string
            - 'null'
          description: Root execution ID
        run_timeout_seconds:
          type:
            - integer
            - 'null'
          format: int32
          description: Timeout in seconds
        session_id:
          type:
            - string
            - 'null'
          description: Session ID
        started_at:
          type:
            - string
            - 'null'
          description: Start timestamp (RFC3339)
        status:
          type: string
          description: Execution status (pending, running, completed, failed, cancelled)
        step_key:
          type:
            - string
            - 'null'
          description: Step key
        user_id:
          type:
            - string
            - 'null'
          description: User ID
        workflow_id:
          type: string
          description: Workflow ID
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
    cookie_auth:
      type: apiKey
      in: cookie
      name: polos_auth

````