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

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

Retrieve a single automation.

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

## 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',
  {
    "automation_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 --input '{
  "automation_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",
    "name": "Example"
  }
}
```

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

## Input reference

Retrieve a single automation

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.automation_id` | `string` | Yes | — | The ID of the automation. 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",
    "properties": {
      "automation_id": {
        "type": "string",
        "description": "The ID of the automation.",
        "format": "uuid"
      }
    },
    "required": [
      "automation_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. |
| `result.data.name` | `string` | No | — | The name of the automation. |
| `result.data.status` | `"enabled" \| "disabled"` | No | — | The current status of the automation. Allowed: `enabled`, `disabled`. |
| `result.data.created_at` | `string` | No | — | The date and time the automation was created. |
| `result.data.updated_at` | `string` | No | — | The date and time the automation was last updated. |
| `result.data.steps` | `array` | No | — | The steps in the active version of the automation. |
| `result.data.steps[].key` | `string` | No | — | The unique key of this step within the automation graph. |
| `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[].config` | `record` | No | — | Configuration for the step. Shape depends on `type`. For `delay` steps, config contains `&#123; duration: string &#125;` with a human-readable duration (e.g. `"30 minutes"`). For `wait_for_event` steps, config contains `&#123; event_name: string, timeout?: string, filter_rule?: object &#125;` where `timeout` is a human-readable duration. |
| `result.data.connections` | `array` | No | — | The connections between steps in the active version of the automation. |
| `result.data.connections[].from` | `string` | Yes | — | The `key` of the source step. |
| `result.data.connections[].to` | `string` | Yes | — | The `key` of the target step. |
| `result.data.connections[].type` | `"default" \| "condition_met" \| "condition_not_met" \| "timeout" \| "event_received"` | No | `"default"` | The type of connection. Defaults to `default`. Allowed: `default`, `condition_met`, `condition_not_met`, `timeout`, `event_received`. |
| `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."
          },
          "name": {
            "type": "string",
            "description": "The name of the automation."
          },
          "status": {
            "type": "string",
            "description": "The current status of the automation.",
            "enum": [
              "enabled",
              "disabled"
            ]
          },
          "created_at": {
            "type": "string",
            "description": "The date and time the automation was created."
          },
          "updated_at": {
            "type": "string",
            "description": "The date and time the automation was last updated."
          },
          "steps": {
            "type": "array",
            "description": "The steps in the active version of the automation.",
            "items": {
              "type": "object",
              "description": "A step as returned when retrieving an automation.",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "The unique key of this step within the automation graph."
                },
                "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"
                  ]
                },
                "config": {
                  "type": "object",
                  "description": "Configuration for the step. Shape depends on `type`. For `delay` steps, config contains `{ duration: string }` with a human-readable duration (e.g. `\"30 minutes\"`). For `wait_for_event` steps, config contains `{ event_name: string, timeout?: string, filter_rule?: object }` where `timeout` is a human-readable duration."
                }
              },
              "additionalProperties": false
            }
          },
          "connections": {
            "type": "array",
            "description": "The connections between steps in the active version of the automation.",
            "items": {
              "type": "object",
              "description": "A connection between two steps in the automation graph.",
              "properties": {
                "from": {
                  "type": "string",
                  "description": "The `key` of the source step."
                },
                "to": {
                  "type": "string",
                  "description": "The `key` of the target step."
                },
                "type": {
                  "type": "string",
                  "description": "The type of connection. Defaults to `default`.",
                  "default": "default",
                  "enum": [
                    "default",
                    "condition_met",
                    "condition_not_met",
                    "timeout",
                    "event_received"
                  ]
                }
              },
              "required": [
                "from",
                "to"
              ],
              "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.