List sequences

GET /api/v1/sequences Each sequence carries id, name, status, publishedVersionId and its dates.

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.

Query parameters

ParameterTypeDescription
pagenumberPage number, default 1
limitnumberItems per page, capped at 100

Query parameters

ParameterTypeDescription
statusstringactive or paused
searchstringMatches the name
pagenumberDefaults to 1
limitnumberDefaults to 20, capped at 100

Example

bash
curl -H "x-api-key: $AGENTMAIL_API_KEY" \
  "https://www.agentsmail.io/api/v1/sequences?page=1&limit=20"

Response

  • 200 OK — the call succeeded.
  • 401 Unauthorized — missing or invalid key, or its owner left the organization.
  • 429 Too Many Requests — over 120 requests in a minute for this key.

Response fields

data is an array of sequences, with a pagination object next to it.
FieldTypeDescription
successbooleanIndicates if the operation was successful
data[].idstringIdentifier of the sequence
data[].namestringIts name
data[].statusstringactive or paused
data[].publishedVersionIdstring \null
data[].createdAt / updatedAtstringISO dates
paginationobject{total, page, limit, totalPages}

Example response

json
{
  "success": true,
  "data": [
    {
      "id": "4d19c0a2",
      "name": "Newsletter",
      "status": "subscribed",
      "publishedVersionId": "c41a7e55",
      "createdAt` / `updatedAt": "value"
    }
  ],
  "pagination": {
    "total": 1,
    "page": 1,
    "limit": 20,
    "totalPages": 1
  }
}