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

# GET Get Automation

> Retrieve a single automation workflow.

## Get automation

`GET /api/automations/:id`

Retrieve details of a specific automation including nodes and edges.

### Headers

**Cookie** `string` *required*

Session cookie (login via POST /api/auth/login)

### Path parameters

**id** `integer` *required*

Automation ID.

```bash cURL theme={null}
curl https://zeplo.ai/api/automations/1 \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "id": 1,
    "name": "Welcome Flow",
    "description": "Send welcome message to new contacts",
    "status": "active",
    "trigger": "new_conversation",
    "channelId": "647015955153740",
    "config": {},
    "nodes": [
      {
        "id": "node_1",
        "type": "trigger",
        "position": { "x": 100, "y": 100 },
        "data": {
          "triggerType": "new_conversation"
        }
      },
      {
        "id": "node_2",
        "type": "sendMessage",
        "position": { "x": 300, "y": 100 },
        "data": {
          "messageType": "template",
          "templateName": "welcome_message"
        }
      }
    ],
    "edges": [
      {
        "id": "edge_1",
        "source": "node_1",
        "target": "node_2"
      }
    ],
    "executionCount": 230,
    "lastExecutedAt": "2026-01-15T09:30:00Z",
    "createdAt": "2026-01-01T08:00:00Z"
  }
}
```


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