> ## 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

> Returns an active automation with its triggers and integration account bindings.



## OpenAPI

````yaml https://automate.ax/api/v1/openapi.json get /automations/{automation}
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}:
    get:
      tags:
        - Automations
      summary: Get automation
      description: >-
        Returns an active automation with its triggers and integration account
        bindings.
      operationId: getAutomation
      parameters:
        - name: automation
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            description: >-
              Exact automation ID or unique active deployed description. IDs
              take precedence.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  accountBindings:
                    type: array
                    items:
                      type: object
                      properties:
                        account:
                          anyOf:
                            - type: object
                              properties:
                                checkedAt:
                                  anyOf:
                                    - type: string
                                      format: date-time
                                      x-native-type: date
                                    - type: 'null'
                                connectionMethodId:
                                  type: string
                                  minLength: 1
                                error:
                                  anyOf:
                                    - type: object
                                      properties:
                                        code:
                                          type: string
                                        message:
                                          type: string
                                      required:
                                        - code
                                        - message
                                    - type: 'null'
                                id:
                                  type: string
                                label:
                                  type: string
                                scopes:
                                  type: array
                                  items:
                                    type: string
                                serviceId:
                                  type: string
                                serviceSub:
                                  type: string
                              required:
                                - checkedAt
                                - connectionMethodId
                                - error
                                - id
                                - label
                                - scopes
                                - serviceId
                                - serviceSub
                            - type: 'null'
                        binding:
                          type: string
                        serviceId:
                          type: string
                      required:
                        - account
                        - binding
                        - serviceId
                  activeDeploymentId:
                    type: string
                  createdAt:
                    type: string
                    format: date-time
                    x-native-type: date
                  description:
                    type: string
                  enabled:
                    type: boolean
                  id:
                    type: string
                  identityKey:
                    type: string
                  project:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      organization:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                        required:
                          - id
                          - name
                    required:
                      - id
                      - name
                      - organization
                  triggers:
                    type: array
                    items:
                      type: object
                      properties:
                        details:
                          type: array
                          items:
                            type: object
                            properties:
                              copyable:
                                type: boolean
                              value:
                                type: string
                              label:
                                type: string
                            required:
                              - value
                              - label
                        hookSlot:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        id:
                          type: string
                        name:
                          type: string
                        primary:
                          type: object
                          properties:
                            copyable:
                              type: boolean
                            value:
                              type: string
                          required:
                            - value
                        scopePath:
                          type: array
                          items:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        type:
                          type: string
                      required:
                        - details
                        - hookSlot
                        - id
                        - name
                        - scopePath
                        - type
                  updatedAt:
                    type: string
                    format: date-time
                    x-native-type: date
                required:
                  - accountBindings
                  - activeDeploymentId
                  - createdAt
                  - description
                  - enabled
                  - id
                  - identityKey
                  - project
                  - triggers
                  - updatedAt
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Automate.ax user session bearer token.

````