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

# Resend: Automations Get Run

> Retrieve a single automation run. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Retrieve a single automation run.

> [!NOTE]
>
> Tool ID: `resend_automations_get_run`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'resend_automations_get_run',
  {
    "automation_id": "123e4567-e89b-42d3-a456-426614174000",
    "run_id": "123e4567-e89b-42d3-a456-426614174000"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run resend_automations_get_run --input '{
  "automation_id": "123e4567-e89b-42d3-a456-426614174000",
  "run_id": "123e4567-e89b-42d3-a456-426614174000"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "object": "example",
    "id": "id_123",
    "status": "running"
  }
}
```

Use `deepline describe resend_automations_get_run --json` for the latest machine-readable contract.

## Input reference

Retrieve a single automation run

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.automation_id` | `string` | Yes | — | The ID of the automation. Format: `uuid`. |
| `payload.run_id` | `string` | Yes | — | The ID of the automation run. Format: `uuid`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve a single automation run",
    "properties": {
      "automation_id": {
        "type": "string",
        "description": "The ID of the automation.",
        "format": "uuid"
      },
      "run_id": {
        "type": "string",
        "description": "The ID of the automation run.",
        "format": "uuid"
      }
    },
    "required": [
      "automation_id",
      "run_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `string` | No | — | Type of the response object. |
| `result.data.id` | `string` | No | — | The ID of the automation run. |
| `result.data.status` | `"running" \| "completed" \| "failed" \| "cancelled"` | No | — | The current status of the automation run. Allowed: `running`, `completed`, `failed`, `cancelled`. |
| `result.data.started_at` | `string \| null` | No | — | The date and time the run started. |
| `result.data.completed_at` | `string \| null` | No | — | The date and time the run completed. |
| `result.data.created_at` | `string` | No | — | The date and time the run was created. |
| `result.data.steps` | `array` | No | — | The steps executed in this run, sorted in graph order. |
| `result.data.steps[].key` | `string` | No | — | The key of the automation step. |
| `result.data.steps[].type` | `"trigger" \| "send_email" \| "delay" \| "wait_for_event" \| "condition" \| "contact_update" \| "contact_delete" \| "add_to_segment"` | No | — | The type of automation step. Allowed: `trigger`, `send_email`, `delay`, `wait_for_event`, `condition`, `contact_update`, `contact_delete`, `add_to_segment`. |
| `result.data.steps[].status` | `string` | No | — | The execution status of this step. |
| `result.data.steps[].started_at` | `string \| null` | No | — | The date and time the step started executing. |
| `result.data.steps[].completed_at` | `string \| null` | No | — | The date and time the step completed executing. |
| `result.data.steps[].output` | `object \| null` | No | — | The output produced by the step, if any. |
| `result.data.steps[].error` | `object \| null` | No | — | The error produced by the step, if any. |
| `result.data.steps[].created_at` | `string` | No | — | The date and time the step record was created. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "object": {
            "type": "string",
            "description": "Type of the response object."
          },
          "id": {
            "type": "string",
            "description": "The ID of the automation run."
          },
          "status": {
            "type": "string",
            "description": "The current status of the automation run.",
            "enum": [
              "running",
              "completed",
              "failed",
              "cancelled"
            ]
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date and time the run started."
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "The date and time the run completed."
          },
          "created_at": {
            "type": "string",
            "description": "The date and time the run was created."
          },
          "steps": {
            "type": "array",
            "description": "The steps executed in this run, sorted in graph order.",
            "items": {
              "type": "object",
              "description": "A step execution within an automation run.",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "The key of the automation step."
                },
                "type": {
                  "type": "string",
                  "description": "The type of automation step.",
                  "enum": [
                    "trigger",
                    "send_email",
                    "delay",
                    "wait_for_event",
                    "condition",
                    "contact_update",
                    "contact_delete",
                    "add_to_segment"
                  ]
                },
                "status": {
                  "type": "string",
                  "description": "The execution status of this step."
                },
                "started_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The date and time the step started executing."
                },
                "completed_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The date and time the step completed executing."
                },
                "output": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The output produced by the step, if any."
                },
                "error": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The error produced by the step, if any."
                },
                "created_at": {
                  "type": "string",
                  "description": "The date and time the step record was created."
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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