# Retrieve Automation

`GET https://api.inboxjot.com/v1/automations/{automation_id}`

Retrieves one automation with its trigger, steps, counts and the problems that stop it from turning on. Needs a Full key. A key limited to one domain answers 403.

## Path Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `automation_id` | string | Yes | The automation id. |

## Response

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | No | The automation id. |
| `workspace_id` | string | No | The workspace id. |
| `name` | string | No | The automation name. |
| `description` | string \| null | No | A note about what the automation does. |
| `status` | string | No | `draft`, `on` or `off`. |
| `trigger` | object \| null | No | What starts a run for a contact. `null` until it is set. |
| `trigger.event` | string | No | The event name that starts a run, such as `user.created`. |
| `trigger.conditions` | object \| null | No | Start a run only when the event data matches. Rules use `data.<path>` fields. |
| `trigger.conditions.match` | string | No | `all` needs every rule. `any` needs one. |
| `trigger.conditions.rules` | array | No | Up to 20 rules in all. A rule can be a group of rules, one level deep. |
| `trigger.type` | string | No | Always `event`. |
| `steps` | object | No | Each step by its id. The `type` of a step is `send_email`, `wait`, `wait_for_event`, `check_if`, `random_split`, `update_contact`, `update_topic`, `update_segment` or `track_event`. |
| `first_step_id` | string \| null | No | The id of the step that runs first. |
| `exit` | object \| null | No | What ends a run early. `null` when nothing does. |
| `exit.events` | object[] | No | A run ends as soon as one of these events arrives. Up to 5. |
| `exit.events[].event` | string | No | The event that ends the run, such as `order.completed`. |
| `exit.events[].conditions` | object \| null | No | End the run only when the event data matches. |
| `exit.events[].conditions.match` | string | No | `all` needs every rule. `any` needs one. |
| `exit.events[].conditions.rules` | array | No | Up to 20 rules in all. A rule can be a group of rules, one level deep. |
| `exit.conditions` | object \| null | No | A run ends before its next step when these match. Rules use contact fields, `segment`, `topic` and `step.<id>`. |
| `exit.conditions.match` | string | No | `all` needs every rule. `any` needs one. |
| `exit.conditions.rules` | array | No | Up to 20 rules in all. A rule can be a group of rules, one level deep. |
| `allow_reentry` | boolean | No | Whether a contact can start a new run after the last one ends. |
| `entered_count` | integer | No | How many runs started. |
| `active_count` | integer | No | How many runs are in progress. |
| `completed_count` | integer | No | How many runs reached the last step. |
| `exited_count` | integer | No | How many runs stopped before the last step. |
| `sent_count` | integer | No | How many emails the automation sent. |
| `creator_id` | string | No | The id of the user who created it. |
| `turned_on_at` | string \| null | No | When it was last turned on. `null` when it was never on. |
| `created_at` | string | No | When it was created. |
| `updated_at` | string | No | When it last changed. |
| `trigger_label` | string \| null | No | The event name, or the name of the topic or segment in the trigger. |
| `templates` | object[] | No | The templates that the steps send. |
| `templates[].id` | string | No | The template id. |
| `templates[].name` | string | No | The template name. |
| `templates[].subject` | string | No | The subject of the published template. |
| `templates[].from` | string | No | The from address of the published template. |
| `templates[].preheader` | string | No | The preview text of the published template. |
| `segments` | object[] | No | The segments that the trigger and the steps use. |
| `segments[].id` | string | No | The segment id. |
| `segments[].name` | string | No | The segment name. |
| `segments[].type` | string | No | `static` or `dynamic`. |
| `step_stats` | object | No | Counts for each step by its id: runs that wait there, emails sent, opened, clicked and unsubscribed, `yes` and `no` for a `check_if` step, and `paths` for a `check_if` step with several paths or a `random_split` step. |
| `problems` | object[] | No | What stops the automation from turning on. Empty when it can turn on. |
| `problems[].step_id` | string \| null | No | The step to change. `null` when the problem is not in a step. |
| `problems[].message` | string | No | What to change before the automation can turn on. |

## Request

cURL:

```bash
curl -X GET https://api.inboxjot.com/v1/automations/aut_06d2mfk8r3gx6mc9qe1pb \
  -H "Authorization: Bearer $INBOXJOT_API_KEY"
```

## Responses

| Status | Description |
| --- | --- |
| 200 | Returns the automation with its steps, counts and problems. |
| 400 | A path parameter is invalid. |
| 401 | The API key is missing, revoked or expired. |
| 403 | The key is a Sending key or is limited to one domain, or the request comes from outside its IP allowlist. |
| 404 | The automation does not exist in this workspace. |
| 429 | Too many requests for this key. Wait for the seconds in the Retry-After header. |
| 500 | Something failed on our side. Retry later. |

200:

```json
{
  "id": "aut_06d2mfk8r3gx6mc9qe1pb",
  "workspace_id": "ws_06d2mfk8r1aq9xv3jc6ne",
  "name": "Welcome series",
  "description": null,
  "status": "on",
  "trigger": {
    "type": "event",
    "event": "user.created"
  },
  "steps": {
    "s1": {
      "id": "s1",
      "type": "send_email",
      "template_id": "tpl_06d2mfk8r6hn3cx7vb2qe",
      "from": "",
      "subject": "",
      "next": "s2"
    },
    "s2": {
      "id": "s2",
      "type": "wait",
      "amount": 2,
      "unit": "days",
      "next": null
    }
  },
  "first_step_id": "s1",
  "exit": null,
  "allow_reentry": false,
  "entered_count": 120,
  "active_count": 14,
  "completed_count": 100,
  "exited_count": 6,
  "sent_count": 118,
  "creator_id": "usr_06d2mfk8r0ce7ha2pw5jx",
  "turned_on_at": "2026-10-01T12:00:00.000Z",
  "created_at": "2026-09-28T09:00:00.000Z",
  "updated_at": "2026-10-01T12:00:00.000Z",
  "trigger_label": "user.created",
  "templates": [
    {
      "id": "tpl_06d2mfk8r6hn3cx7vb2qe",
      "name": "Welcome",
      "subject": "Welcome to Acme",
      "from": "Acme <hello@acme.com>",
      "preheader": "Here is how to start."
    }
  ],
  "segments": [],
  "step_stats": {
    "s1": {
      "waiting": 0,
      "sent": 118,
      "opened": 74,
      "clicked": 21,
      "unsubscribed": 1,
      "yes": 0,
      "no": 0,
      "paths": []
    },
    "s2": {
      "waiting": 14,
      "sent": 0,
      "opened": 0,
      "clicked": 0,
      "unsubscribed": 0,
      "yes": 0,
      "no": 0,
      "paths": []
    }
  },
  "problems": []
}
```

400:

```json
{
  "name": "validation_error",
  "status": 400,
  "message": "length is greater than 100",
  "errors": [
    {
      "message": "length is greater than 100",
      "location": "automation_id"
    }
  ],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

401:

```json
{
  "name": "unauthorized",
  "status": 401,
  "message": "Unauthorized",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

403:

```json
{
  "name": "forbidden",
  "status": 403,
  "message": "This key cannot be used from 203.0.113.7",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

404:

```json
{
  "name": "not_found",
  "status": 404,
  "message": "Automation not found",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

429:

```json
{
  "name": "rate_limit_exceeded",
  "status": 429,
  "message": "Too many attempts. Try again later.",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

500:

```json
{
  "name": "unknown_error",
  "status": 500,
  "message": "Something went wrong. Please try again later.",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```
