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

# Get an agentic automation run

> Get one run of an agentic automation by its ID. Use it to check whether a run has finished, how it ended, and what it answered in `result` and `structured_result`.



## OpenAPI

````yaml get /agentic-automations/runs/{id}
openapi: 3.0.3
info:
  version: 0.1.1
  title: Datagrid API
  description: Datagrid API
servers:
  - url: https://api.datagrid.com/v1
security:
  - BearerAuth: []
paths:
  /agentic-automations/runs/{id}:
    get:
      tags:
        - Agentic Automations
      summary: Get an agentic automation run
      description: >-
        Get one run of an agentic automation by its ID. Use it to check whether
        a run has finished, how it ended, and what it answered in `result` and
        `structured_result`.
      operationId: GetAgenticAutomationRun
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the run.
          schema:
            type: string
      responses:
        '200':
          description: The run
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgenticAutomationRun'
        '404':
          description: Not found. The run does not exist or belongs to another teamspace.
        '429':
          description: >-
            Rate limit exceeded. The request has been throttled because the rate
            limit for this endpoint has been reached. Check the `Retry-After`
            response header and retry after the specified number of seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
components:
  schemas:
    AgenticAutomationRun:
      type: object
      required:
        - object
        - id
        - automation_id
        - agent_id
        - agent_name
        - automation_name
        - invocation
        - status
        - failure_reason
        - triggered_by_user_id
        - created_at
        - started_at
        - ended_at
        - cancelled_at
        - output_conversation_id
        - type
        - resource_type
        - resource_id
        - result
        - structured_result
      properties:
        object:
          type: string
          enum:
            - agentic_automation_run
          description: The object type, always 'agentic_automation_run'.
        id:
          type: string
          description: Unique identifier for the run.
        automation_id:
          type: string
          description: The ID of the automation this run belongs to.
        agent_id:
          type: string
          description: The ID of the agent that ran.
        agent_name:
          type: string
          description: Name of the agent that ran.
        automation_name:
          type: string
          description: Name of the automation this run belongs to.
        invocation:
          type: string
          enum:
            - automatic
            - manual
            - test
          description: >-
            How the run started. `automatic` for a schedule or app event,
            `manual` for a person running it, `test` for a test run.
        status:
          type: string
          enum:
            - queued
            - running
            - succeeded
            - failed
            - cancelling
            - cancelled
            - awaiting_approval
            - needs_attention
            - timed_out
          description: Where the run is in its life.
        failure_reason:
          type: string
          enum:
            - exception
            - agent_error
            - no_response
            - resource_unavailable
            - user_unavailable
            - unauthorized
            - out_of_credits
            - timed_out
          description: Why the run did not succeed. Null when it has not failed.
          nullable: true
        triggered_by_user_id:
          type: string
          description: The user who started the run. Null for an automatic run.
          nullable: true
        created_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the run was created.
        started_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the run started. Null until it starts.
          nullable: true
        ended_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of when the run ended. Null while it is open.
          nullable: true
        cancelled_at:
          type: string
          format: date-time
          description: >-
            ISO 8601 timestamp of when the run was cancelled. Null if it was
            not.
          nullable: true
        output_conversation_id:
          type: string
          description: The conversation the run wrote to. Null when the run has none.
          nullable: true
        type:
          type: string
          enum:
            - scheduled
            - app_event
          description: 'What starts the automation: a schedule or an app event.'
        resource_type:
          type: string
          description: >-
            The kind of record an app event run was started for, for example
            `Submittals`. Null for a scheduled run.
          nullable: true
        resource_id:
          type: string
          description: The id of that record, as a string. Null for a scheduled run.
          nullable: true
        result:
          type: string
          nullable: true
          description: >-
            What the agent answered, as text. Null unless `status` is
            `succeeded`, and null once the answer has been deleted.


            Prose, not a rendering: an embedded chart reads as `[Chart: ...]`
            and a table as `[Table: ...]`.
        structured_result:
          type: object
          additionalProperties: true
          nullable: true
          description: >-
            Whatever the agent stored for the record, as opaque JSON. Datagrid
            does not name or validate its keys, so they are an agreement between
            the agent and its reader, and you cannot sort or filter on one.


            Null when the agent stored nothing, and null when `result` is empty.
    RateLimitError:
      type: object
      description: >-
        Returned when the rate limit is exceeded. Rate limits are enforced per
        teamspace, endpoint path, and HTTP method over a 60-second sliding
        window. Each endpoint may have its own limit — check the
        X-RateLimit-Limit response header for the effective value.
      required:
        - error
        - message
        - retryable
        - status_code
      properties:
        status_code:
          type: integer
          description: The HTTP status code (429).
        statusCode:
          type: integer
          deprecated: true
          description: Deprecated. Use status_code instead.
        error:
          type: string
          enum:
            - rate_limit_exceeded
          description: The error code identifying this as a rate limit error.
        message:
          type: string
          description: A human-readable error message.
        mitigation:
          type: string
          description: Suggested action to resolve the error.
        retryable:
          type: boolean
          description: Whether the request can be retried after a delay.
        details:
          type: object
          properties:
            reason:
              type: string
              description: A detailed explanation of why the rate limit was exceeded.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.