List steps

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 organizationThis endpoint
OWNERAllowed
ADMINAllowed
MEMBERAllowed
A key carries the role its creator holds in this organization — never a role on AgentsMail itself. See API keys.

Path parameters

ParameterTypeDescription
sequenceIdstringRequired. The sequence
versionIdstringRequired. 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.
FieldTypeDescription
successbooleanIndicates if the operation was successful
data[].idstringIdentifier of the step
data[].versionIdstringThe draft or published version it belongs to
data[].typestringsend_email, wait, add_tag, remove_tag, end_sequence, webhook
data[].subject / contentstring \null
data[].templateIdstring \null
data[].waitHoursnumber \null
data[].tagIdstring \null
data[].webhookUrlstring \null
data[].createdAt / updatedAtstringISO dates
paginationobject{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
  }
}