Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Retrieve a single automation run

GET/automations/{automation_id}/runs/{run_id}Retrieve a single automation run

Parameters

automation_idstring · uuidpathrequired

The ID of the automation.

run_idstring · uuidpathrequired

The ID of the automation run.

Responses

200OKapplication/json
objectAutomationRun
completed_atnull | string

The date and time the run completed.

created_atstring

The date and time the run was created.

idstring

The ID of the automation run.

objectstring

Type of the response object.

started_atnull | string

The date and time the run started.

statusstring

The current status of the automation run.

one of "running", "completed", "failed", "cancelled"

stepsarray of object

The steps executed in this run, sorted in graph order.

Show child attributes
Show array items

A step execution within an automation run.

completed_atnull | string

The date and time the step completed executing.

created_atstring

The date and time the step record was created.

errorvalue
Show child attributes
anyOf · 2 options
Option 1value

The error produced by the step, if any.

Option 2nullnullable
keystring

The key of the automation step.

outputvalue
Show child attributes
anyOf · 2 options
Option 1value

The output produced by the step, if any.

Option 2nullnullable
started_atnull | string

The date and time the step started executing.

statusstring

The execution status of this step.

typestring

The type of automation step.

one of "trigger", "send_email", "delay", "wait_for_event", "condition", "contact_update", "contact_delete", "add_to_segment"

Example response
{
  "completed_at": "string",
  "created_at": "string",
  "id": "string",
  "object": "automation_run",
  "started_at": "string",
  "status": "cancelled",
  "steps": [
    {
      "completed_at": "string",
      "created_at": "string",
      "error": null,
      "key": "string",
      "output": null,
      "started_at": "string",
      "status": "string",
      "type": "add_to_segment"
    }
  ]
}
Documentation menu