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

# Get execution

> Get a single execution by ID with all details



## OpenAPI

````yaml https://odyssey.asteroid.ai/agents/v2/openapi.yaml get /executions/{executionId}
openapi: 3.1.0
info:
  title: Agent Service
  version: v1
servers:
  - description: V2 API
    url: https://odyssey.asteroid.ai/agents/v2
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
  - name: Execution
  - name: Files
  - name: Agent Profiles
  - name: Agent Profile Pools
  - name: Workflows
  - name: Schema
  - name: Documentation
  - name: Context
paths:
  /executions/{executionId}:
    get:
      tags:
        - Execution
      summary: Get execution
      description: Get a single execution by ID with all details
      operationId: ExecutionGet
      parameters:
        - description: The unique identifier of the execution
          in: path
          name: executionId
          required: true
          schema:
            $ref: '#/components/schemas/Common.uuid'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Agents.Execution.ListItem'
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.BadRequestErrorBody'
          description: The server could not understand the request due to invalid syntax.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.UnauthorizedErrorBody'
          description: Access is unauthorized.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.ForbiddenErrorBody'
          description: Access is forbidden.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.NotFoundErrorBody'
          description: The server cannot find the requested resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.InternalServerErrorBody'
          description: Server error
components:
  schemas:
    Common.uuid:
      format: uuid
      type: string
    Agents.Execution.ListItem:
      description: Represents a single execution in a list view
      properties:
        agentId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: The ID of the agent that was executed
        agentName:
          description: The agent display name
          type: string
        agentProfileId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: The ID of the agent profile used for this execution (if any)
        agentProfileName:
          description: The name of the agent profile used for this execution (if any)
          type: string
        browserLiveViewUrl:
          deprecated: true
          description: 'Deprecated: Use ''liveViewUrl'' instead.'
          type: string
        browserRecordingUrl:
          deprecated: true
          description: 'Deprecated: Use ''recordingUrl'' instead.'
          type: string
        comments:
          description: Comments on this execution
          items:
            $ref: '#/components/schemas/Agents.Execution.Comment'
          type: array
        createdAt:
          description: When the execution was created
          format: date-time
          type: string
        duration:
          description: Execution duration in seconds (only present for terminal executions)
          format: double
          type: number
        executionOptions:
          allOf:
            - $ref: '#/components/schemas/Agents.Agent.ExecutionOptions'
          description: Per-execution runtime options (e.g. shared storage key)
        executionResult:
          allOf:
            - $ref: '#/components/schemas/Agents.Execution.ExecutionResult'
          description: Execution result with outcome, reasoning, and result data
        hasBeenRerun:
          description: Whether this execution has been rerun at least once
          type: boolean
        humanLabels:
          description: Human-applied labels for this execution
          items:
            $ref: '#/components/schemas/Agents.Execution.HumanLabel'
          type: array
        id:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: The unique identifier of the execution
        inputs:
          description: Input variables used for this execution
          type: object
          unevaluatedProperties: {}
        liveViewUrl:
          description: >-
            Live view URL for debugging (if an environment is active and
            execution is running)
          type: string
        metadata:
          description: Optional metadata key-value pairs attached to this execution
          type: object
          unevaluatedProperties:
            type: string
        organizationId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: The organization this execution belongs to
        parentExecutionId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: ID of the execution this was rerun from, if applicable
        recordingUrl:
          description: >-
            Recording URL for playback (if an environment was used and execution
            is terminal)
          type: string
        status:
          allOf:
            - $ref: '#/components/schemas/Agents.Execution.Status'
          description: The current status of the execution
        terminalAt:
          description: When the execution reached a terminal state (if applicable)
          format: date-time
          type: string
        triggerContext:
          allOf:
            - $ref: '#/components/schemas/Agents.Execution.TriggerContext'
          description: >-
            Context about how and by whom this execution was triggered
            (discriminated by source)
        workflowId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: The ID of the workflow that was executed
      required:
        - id
        - agentId
        - workflowId
        - status
        - createdAt
        - organizationId
        - agentName
        - humanLabels
        - comments
        - hasBeenRerun
      type: object
    Common.BadRequestErrorBody:
      properties:
        code:
          enum:
            - 400
          type: number
          x-enum-varnames:
            - BadRequest
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.UnauthorizedErrorBody:
      properties:
        code:
          enum:
            - 401
          type: number
          x-enum-varnames:
            - Unauthorized
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.ForbiddenErrorBody:
      properties:
        code:
          enum:
            - 403
          type: number
          x-enum-varnames:
            - Forbidden
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.NotFoundErrorBody:
      properties:
        code:
          enum:
            - 404
          type: number
          x-enum-varnames:
            - NotFound
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.InternalServerErrorBody:
      properties:
        code:
          enum:
            - 500
          type: number
          x-enum-varnames:
            - InternalServerError
        message:
          type: string
      required:
        - code
        - message
      type: object
    Agents.Execution.Comment:
      description: User comment on an execution
      properties:
        content:
          description: Comment content
          type: string
        createdAt:
          description: When the comment was created
          format: date-time
          type: string
        executionId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Execution this comment belongs to
        id:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Unique identifier for the comment
        public:
          description: Whether the comment is public
          type: boolean
        updatedAt:
          description: When the comment was last updated
          format: date-time
          type: string
        userId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: User who created the comment
      required:
        - id
        - executionId
        - userId
        - content
        - public
        - createdAt
      type: object
    Agents.Agent.ExecutionOptions:
      description: Per-execution runtime options.
      properties:
        sharedStorageKey:
          description: >-
            Scopes shared-file storage to a per-entity subdirectory under each
            node's shared folder. The value is normalised to a filesystem-safe
            slug by the server.
          type: string
        softTimeoutMins:
          description: >-
            Soft timeout in minutes. When the execution has been running longer
            than this value, a message is injected on every subsequent step
            urging the agent to wrap up and produce output. Must be greater than
            0 and less than the agent's hard timeout (max_timeout_mins).
          minimum: 1
          type: integer
      type: object
    Agents.Execution.ExecutionResult:
      description: Execution result containing outcome, reasoning, and result data
      properties:
        createdAt:
          description: When the result was created
          format: date-time
          type: string
        executionId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Execution this result belongs to
        id:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Unique identifier for the result
        outcome:
          description: Outcome of the execution (success or failure)
          type: string
        reasoning:
          description: AI reasoning for the outcome
          type: string
        result:
          description: Result data as JSON
      required:
        - id
        - executionId
        - outcome
        - reasoning
        - result
        - createdAt
      type: object
    Agents.Execution.HumanLabel:
      description: Human-applied label for categorizing executions
      properties:
        color:
          description: 'Hex color code for the label (e.g., #FF5733)'
          type: string
        createdAt:
          description: When the label was created
          format: date-time
          type: string
        id:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Unique identifier for the label
        name:
          description: Display name of the label
          type: string
        organizationId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Organization this label belongs to
      required:
        - id
        - organizationId
        - name
        - color
        - createdAt
      type: object
    Agents.Execution.Status:
      enum:
        - starting
        - running
        - paused
        - awaiting_confirmation
        - completed
        - cancelled
        - failed
        - paused_by_agent
      type: string
    Agents.Execution.TriggerContext:
      description: Discriminated union of trigger contexts (discriminated by source)
      discriminator:
        mapping:
          api:
            $ref: '#/components/schemas/Agents.Execution.APITriggerContext'
          schedule:
            $ref: '#/components/schemas/Agents.Execution.ScheduleTriggerContext'
          ui:
            $ref: '#/components/schemas/Agents.Execution.UITriggerContext'
        propertyName: source
      oneOf:
        - $ref: '#/components/schemas/Agents.Execution.APITriggerContext'
        - $ref: '#/components/schemas/Agents.Execution.UITriggerContext'
        - $ref: '#/components/schemas/Agents.Execution.ScheduleTriggerContext'
      type: object
    Agents.Execution.APITriggerContext:
      description: API-triggered execution context
      properties:
        apiKey:
          allOf:
            - $ref: '#/components/schemas/Agents.Execution.APIKeyRef'
          description: >-
            API key used for authentication (may be hidden for privacy when
            admin-triggered)
        runner:
          allOf:
            - $ref: '#/components/schemas/Agents.Execution.TriggerRunner'
          description: Runner information
        source:
          description: Trigger source discriminator
          enum:
            - api
          type: string
      required:
        - source
        - runner
      type: object
    Agents.Execution.ScheduleTriggerContext:
      description: Schedule-triggered execution context
      properties:
        schedule:
          allOf:
            - $ref: '#/components/schemas/Agents.Execution.ScheduleRef'
          description: Schedule that triggered the execution
        source:
          description: Trigger source discriminator
          enum:
            - schedule
          type: string
      required:
        - source
        - schedule
      type: object
    Agents.Execution.UITriggerContext:
      description: UI-triggered execution context
      properties:
        runner:
          allOf:
            - $ref: '#/components/schemas/Agents.Execution.TriggerRunner'
          description: Runner information
        source:
          description: Trigger source discriminator
          enum:
            - ui
          type: string
      required:
        - source
        - runner
      type: object
    Agents.Execution.APIKeyRef:
      description: API key reference used for authentication
      properties:
        id:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: API key ID
        name:
          description: API key name
          type: string
      required:
        - id
        - name
      type: object
    Agents.Execution.TriggerRunner:
      description: Runner information - who triggered the execution
      properties:
        email:
          description: Email of the runner
          type: string
        isAdmin:
          description: Whether the user is an admin (may be hidden for privacy)
          type: boolean
        userId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: User ID of the runner
      required:
        - userId
        - email
      type: object
    Agents.Execution.ScheduleRef:
      description: Schedule reference for schedule-triggered executions
      properties:
        cronExpression:
          description: Cron expression of the schedule
          type: string
        id:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Schedule ID
      required:
        - id
        - cronExpression
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-Asteroid-Agents-Api-Key
      type: apiKey

````