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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get automation execution

> Returns one execution with decoded events, outputs, actions, and durable logical attempt history.



## OpenAPI

````yaml https://automate.ax/api/v1/openapi.json get /automations/{automation}/executions/{executionId}
openapi: 3.1.1
info:
  title: Automate.ax API
  version: 0.0.0
servers:
  - url: https://automate.ax/api/v1
security:
  - bearerAuth: []
paths:
  /automations/{automation}/executions/{executionId}:
    get:
      tags:
        - Automations
      summary: Get automation execution
      description: >-
        Returns one execution with decoded events, outputs, actions, and durable
        logical attempt history.
      operationId: getAutomationExecution
      parameters:
        - name: automation
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            description: >-
              Exact automation ID or unique active deployed description. IDs
              take precedence.
        - name: executionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  createdAt:
                    type: string
                    format: date-time
                    x-native-type: date
                  failure:
                    anyOf:
                      - type: object
                        properties:
                          code:
                            type: string
                            minLength: 1
                          details:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                              - type: 'null'
                              - type: array
                                items:
                                  anyOf:
                                    - type: string
                                    - type: number
                                    - type: boolean
                                    - type: 'null'
                                    - type: array
                                      items:
                                        anyOf:
                                          - {}
                                          - type: 'null'
                                    - type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties: {}
                              - type: object
                                propertyNames:
                                  type: string
                                additionalProperties:
                                  anyOf:
                                    - type: string
                                    - type: number
                                    - type: boolean
                                    - type: 'null'
                                    - type: array
                                      items:
                                        anyOf:
                                          - {}
                                          - type: 'null'
                                    - type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties: {}
                          message:
                            type: string
                          name:
                            type: string
                          cause:
                            type: object
                            properties:
                              code:
                                type: string
                                minLength: 1
                              details:
                                anyOf:
                                  - type: string
                                  - type: number
                                  - type: boolean
                                  - type: 'null'
                                  - type: array
                                    items:
                                      anyOf:
                                        - type: string
                                        - type: number
                                        - type: boolean
                                        - type: 'null'
                                        - type: array
                                          items:
                                            anyOf:
                                              - {}
                                              - type: 'null'
                                        - type: object
                                          propertyNames:
                                            type: string
                                          additionalProperties: {}
                                  - type: object
                                    propertyNames:
                                      type: string
                                    additionalProperties:
                                      anyOf:
                                        - type: string
                                        - type: number
                                        - type: boolean
                                        - type: 'null'
                                        - type: array
                                          items:
                                            anyOf:
                                              - {}
                                              - type: 'null'
                                        - type: object
                                          propertyNames:
                                            type: string
                                          additionalProperties: {}
                              message:
                                type: string
                              name:
                                type: string
                              cause:
                                type: object
                                properties:
                                  code:
                                    type: string
                                    minLength: 1
                                  details:
                                    anyOf:
                                      - type: string
                                      - type: number
                                      - type: boolean
                                      - type: 'null'
                                      - type: array
                                        items:
                                          anyOf:
                                            - type: string
                                            - type: number
                                            - type: boolean
                                            - type: 'null'
                                            - type: array
                                              items:
                                                anyOf:
                                                  - {}
                                                  - type: 'null'
                                            - type: object
                                              propertyNames:
                                                type: string
                                              additionalProperties: {}
                                      - type: object
                                        propertyNames:
                                          type: string
                                        additionalProperties:
                                          anyOf:
                                            - type: string
                                            - type: number
                                            - type: boolean
                                            - type: 'null'
                                            - type: array
                                              items:
                                                anyOf:
                                                  - {}
                                                  - type: 'null'
                                            - type: object
                                              propertyNames:
                                                type: string
                                              additionalProperties: {}
                                  message:
                                    type: string
                                  name:
                                    type: string
                                  cause:
                                    type: object
                                    properties:
                                      code:
                                        type: string
                                        minLength: 1
                                      details:
                                        anyOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: 'null'
                                          - type: array
                                            items:
                                              anyOf:
                                                - type: string
                                                - type: number
                                                - type: boolean
                                                - type: 'null'
                                                - type: array
                                                  items:
                                                    anyOf:
                                                      - {}
                                                      - type: 'null'
                                                - type: object
                                                  propertyNames:
                                                    type: string
                                                  additionalProperties: {}
                                          - type: object
                                            propertyNames:
                                              type: string
                                            additionalProperties:
                                              anyOf:
                                                - type: string
                                                - type: number
                                                - type: boolean
                                                - type: 'null'
                                                - type: array
                                                  items:
                                                    anyOf:
                                                      - {}
                                                      - type: 'null'
                                                - type: object
                                                  propertyNames:
                                                    type: string
                                                  additionalProperties: {}
                                      message:
                                        type: string
                                      name:
                                        type: string
                                      cause:
                                        not: {}
                                    required:
                                      - code
                                      - message
                                required:
                                  - code
                                  - message
                            required:
                              - code
                              - message
                        required:
                          - code
                          - message
                      - type: 'null'
                  id:
                    type: string
                  settledAt:
                    anyOf:
                      - type: string
                        format: date-time
                        x-native-type: date
                      - type: 'null'
                  status:
                    enum:
                      - running
                      - settled
                      - failed
                    type: string
                  actions:
                    type: array
                    items:
                      type: object
                      properties:
                        attempts:
                          type: array
                          items:
                            type: object
                            properties:
                              completedAt:
                                anyOf:
                                  - type: string
                                    format: date-time
                                    x-native-type: date
                                  - type: 'null'
                              failure:
                                anyOf:
                                  - type: object
                                    properties:
                                      code:
                                        type: string
                                        minLength: 1
                                      details:
                                        anyOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: 'null'
                                          - type: array
                                            items:
                                              anyOf:
                                                - type: string
                                                - type: number
                                                - type: boolean
                                                - type: 'null'
                                                - type: array
                                                  items:
                                                    anyOf:
                                                      - {}
                                                      - type: 'null'
                                                - type: object
                                                  propertyNames:
                                                    type: string
                                                  additionalProperties: {}
                                          - type: object
                                            propertyNames:
                                              type: string
                                            additionalProperties:
                                              anyOf:
                                                - type: string
                                                - type: number
                                                - type: boolean
                                                - type: 'null'
                                                - type: array
                                                  items:
                                                    anyOf:
                                                      - {}
                                                      - type: 'null'
                                                - type: object
                                                  propertyNames:
                                                    type: string
                                                  additionalProperties: {}
                                      message:
                                        type: string
                                      name:
                                        type: string
                                      cause:
                                        type: object
                                        properties:
                                          code:
                                            type: string
                                            minLength: 1
                                          details:
                                            anyOf:
                                              - type: string
                                              - type: number
                                              - type: boolean
                                              - type: 'null'
                                              - type: array
                                                items:
                                                  anyOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: 'null'
                                                    - type: array
                                                      items:
                                                        anyOf:
                                                          - {}
                                                          - type: 'null'
                                                    - type: object
                                                      propertyNames: {}
                                                      additionalProperties: {}
                                              - type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties:
                                                  anyOf:
                                                    - type: string
                                                    - type: number
                                                    - type: boolean
                                                    - type: 'null'
                                                    - type: array
                                                      items:
                                                        anyOf:
                                                          - {}
                                                          - type: 'null'
                                                    - type: object
                                                      propertyNames: {}
                                                      additionalProperties: {}
                                          message:
                                            type: string
                                          name:
                                            type: string
                                          cause:
                                            type: object
                                            properties:
                                              code:
                                                type: string
                                                minLength: 1
                                              details:
                                                anyOf:
                                                  - type: string
                                                  - type: number
                                                  - type: boolean
                                                  - type: 'null'
                                                  - type: array
                                                    items:
                                                      anyOf:
                                                        - anyOf:
                                                            - {}
                                                            - {}
                                                            - {}
                                                            - {}
                                                            - {}
                                                            - {}
                                                        - type: 'null'
                                                  - type: object
                                                    propertyNames:
                                                      type: string
                                                    additionalProperties:
                                                      anyOf:
                                                        - {}
                                                        - {}
                                                        - {}
                                                        - {}
                                                        - {}
                                                        - {}
                                              message:
                                                type: string
                                              name:
                                                type: string
                                              cause:
                                                type: object
                                                properties:
                                                  code:
                                                    type: string
                                                    minLength: 1
                                                  details:
                                                    anyOf:
                                                      - type: string
                                                      - type: number
                                                      - type: boolean
                                                      - type: 'null'
                                                      - type: array
                                                        items:
                                                          anyOf:
                                                            - {}
                                                            - type: 'null'
                                                      - type: object
                                                        propertyNames: {}
                                                        additionalProperties: {}
                                                  message:
                                                    type: string
                                                  name:
                                                    type: string
                                                  cause:
                                                    not: {}
                                                required:
                                                  - code
                                                  - message
                                            required:
                                              - code
                                              - message
                                        required:
                                          - code
                                          - message
                                    required:
                                      - code
                                      - message
                                  - type: 'null'
                              id:
                                type: string
                              ordinal:
                                type: integer
                                minimum: -9007199254740991
                                maximum: 9007199254740991
                                exclusiveMinimum: 0
                              retryAt:
                                anyOf:
                                  - type: string
                                    format: date-time
                                    x-native-type: date
                                  - type: 'null'
                              startedAt:
                                type: string
                                format: date-time
                                x-native-type: date
                              status:
                                enum:
                                  - running
                                  - retrying
                                  - succeeded
                                  - failed
                                  - indeterminate
                                type: string
                            required:
                              - completedAt
                              - failure
                              - id
                              - ordinal
                              - retryAt
                              - startedAt
                              - status
                        completedAt:
                          anyOf:
                            - type: string
                              format: date-time
                              x-native-type: date
                            - type: 'null'
                        createdAt:
                          type: string
                          format: date-time
                          x-native-type: date
                        description:
                          anyOf:
                            - type: string
                            - type: 'null'
                        failure:
                          anyOf:
                            - type: object
                              properties:
                                code:
                                  type: string
                                  minLength: 1
                                details:
                                  anyOf:
                                    - type: string
                                    - type: number
                                    - type: boolean
                                    - type: 'null'
                                    - type: array
                                      items:
                                        anyOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: 'null'
                                          - type: array
                                            items:
                                              anyOf:
                                                - {}
                                                - type: 'null'
                                          - type: object
                                            propertyNames:
                                              type: string
                                            additionalProperties: {}
                                    - type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties:
                                        anyOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: 'null'
                                          - type: array
                                            items:
                                              anyOf:
                                                - {}
                                                - type: 'null'
                                          - type: object
                                            propertyNames:
                                              type: string
                                            additionalProperties: {}
                                message:
                                  type: string
                                name:
                                  type: string
                                cause:
                                  type: object
                                  properties:
                                    code:
                                      type: string
                                      minLength: 1
                                    details:
                                      anyOf:
                                        - type: string
                                        - type: number
                                        - type: boolean
                                        - type: 'null'
                                        - type: array
                                          items:
                                            anyOf:
                                              - type: string
                                              - type: number
                                              - type: boolean
                                              - type: 'null'
                                              - type: array
                                                items:
                                                  anyOf:
                                                    - {}
                                                    - type: 'null'
                                              - type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                        - type: object
                                          propertyNames:
                                            type: string
                                          additionalProperties:
                                            anyOf:
                                              - type: string
                                              - type: number
                                              - type: boolean
                                              - type: 'null'
                                              - type: array
                                                items:
                                                  anyOf:
                                                    - {}
                                                    - type: 'null'
                                              - type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                    message:
                                      type: string
                                    name:
                                      type: string
                                    cause:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                          minLength: 1
                                        details:
                                          anyOf:
                                            - type: string
                                            - type: number
                                            - type: boolean
                                            - type: 'null'
                                            - type: array
                                              items:
                                                anyOf:
                                                  - type: string
                                                  - type: number
                                                  - type: boolean
                                                  - type: 'null'
                                                  - type: array
                                                    items:
                                                      anyOf:
                                                        - {}
                                                        - type: 'null'
                                                  - type: object
                                                    propertyNames:
                                                      type: string
                                                    additionalProperties: {}
                                            - type: object
                                              propertyNames:
                                                type: string
                                              additionalProperties:
                                                anyOf:
                                                  - type: string
                                                  - type: number
                                                  - type: boolean
                                                  - type: 'null'
                                                  - type: array
                                                    items:
                                                      anyOf:
                                                        - {}
                                                        - type: 'null'
                                                  - type: object
                                                    propertyNames:
                                                      type: string
                                                    additionalProperties: {}
                                        message:
                                          type: string
                                        name:
                                          type: string
                                        cause:
                                          type: object
                                          properties:
                                            code:
                                              type: string
                                              minLength: 1
                                            details:
                                              anyOf:
                                                - type: string
                                                - type: number
                                                - type: boolean
                                                - type: 'null'
                                                - type: array
                                                  items:
                                                    anyOf:
                                                      - type: string
                                                      - type: number
                                                      - type: boolean
                                                      - type: 'null'
                                                      - type: array
                                                        items:
                                                          anyOf:
                                                            - {}
                                                            - type: 'null'
                                                      - type: object
                                                        propertyNames: {}
                                                        additionalProperties: {}
                                                - type: object
                                                  propertyNames:
                                                    type: string
                                                  additionalProperties:
                                                    anyOf:
                                                      - type: string
                                                      - type: number
                                                      - type: boolean
                                                      - type: 'null'
                                                      - type: array
                                                        items:
                                                          anyOf:
                                                            - {}
                                                            - type: 'null'
                                                      - type: object
                                                        propertyNames: {}
                                                        additionalProperties: {}
                                            message:
                                              type: string
                                            name:
                                              type: string
                                            cause:
                                              not: {}
                                          required:
                                            - code
                                            - message
                                      required:
                                        - code
                                        - message
                                  required:
                                    - code
                                    - message
                              required:
                                - code
                                - message
                            - type: 'null'
                        hasOutput:
                          type: boolean
                        id:
                          type: string
                        maxAttempts:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                          exclusiveMinimum: 0
                        name:
                          type: string
                        output:
                          not: {}
                        outputSensitivity:
                          anyOf:
                            - not: {}
                            - type: 'null'
                        replaySafety:
                          anyOf:
                            - enum:
                                - safe
                                - unsafe
                              type: string
                            - type: 'null'
                        slot:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        status:
                          enum:
                            - pending
                            - succeeded
                            - skipped
                            - failed
                          type: string
                      required:
                        - attempts
                        - completedAt
                        - createdAt
                        - description
                        - failure
                        - hasOutput
                        - id
                        - maxAttempts
                        - name
                        - replaySafety
                        - slot
                        - status
                  events:
                    type: array
                    items:
                      type: object
                      properties:
                        createdAt:
                          type: string
                          format: date-time
                          x-native-type: date
                        id:
                          type: string
                        payload:
                          not: {}
                        type:
                          type: string
                      required:
                        - createdAt
                        - id
                        - payload
                        - type
                  outputs:
                    type: array
                    items:
                      type: object
                      properties:
                        actionInvocationId:
                          type: string
                        createdAt:
                          type: string
                          format: date-time
                          x-native-type: date
                        data:
                          not: {}
                        id:
                          type: string
                        sensitivity:
                          anyOf:
                            - not: {}
                            - type: 'null'
                        outputIndex:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        type:
                          type: string
                      required:
                        - actionInvocationId
                        - createdAt
                        - data
                        - id
                        - outputIndex
                        - type
                required:
                  - createdAt
                  - failure
                  - id
                  - settledAt
                  - status
                  - actions
                  - events
                  - outputs
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Automate.ax user session bearer token.

````