GET /api/v1/sequences/{sequenceId}/versions/{versionId}/nodes
The nodes of that version, each with its type and the columns that belong to it. Columns that do
not belong to the type read null — they are not omitted, so you never have to guess whether a
field is empty or absent.
Authorization
| Role in the organization | This endpoint |
|---|---|
OWNER | Allowed |
ADMIN | Allowed |
MEMBER | Allowed |
Path parameters
| Parameter | Type | Description |
|---|---|---|
sequenceId | string | Required. The sequence |
versionId | string | Required. The version whose steps you read |
Example
bash
curl -H "x-api-key: $AGENTMAIL_API_KEY" \
"https://www.agentsmail.io/api/v1/sequences/$SEQUENCE_ID/versions/$VERSION_ID/nodes"Response
200 OK— the call succeeded.401 Unauthorized— missing or invalid key, or its owner left the organization.404 Not Found— no such resource, or it belongs to another organization. The API never confirms that an id exists to a caller who has no right to it.429 Too Many Requests— over 120 requests in a minute for this key.
Response fields
data is an array of steps, in the order they are walked.
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the operation was successful |
data[].id | string | Identifier of the step |
data[].versionId | string | The draft or published version it belongs to |
data[].type | string | send_email, wait, add_tag, remove_tag, end_sequence, webhook |
data[].subject / content | string \ | null |
data[].templateId | string \ | null |
data[].waitHours | number \ | null |
data[].tagId | string \ | null |
data[].webhookUrl | string \ | null |
data[].createdAt / updatedAt | string | ISO dates |
pagination | object | {total, page, limit, totalPages} |
Example response
json
{
"success": true,
"data": [
{
"id": "4d19c0a2",
"versionId": "c41a7e55",
"type": "send_email",
"subject` / `content": "value",
"templateId": "5a44b901",
"waitHours": 24,
"tagId": "7c2ef4b1",
"webhookUrl": "https://example.com/hooks/agentsmail",
"createdAt` / `updatedAt": "value"
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 20,
"totalPages": 1
}
}