List contact lists
/v1/contacts/lists Scopecontacts:read
Lists of the key’s company, newest first.
Parameters3
limitqueryintegercursorquerystringpagination.nextCursorof the previous page.pagequeryintegerPage number (1-based) for numbered pagination with
pagination.total. Ignored withcursor; to read everything, followcursorinstead (faster on large lists).
Responses
- 200
Contact lists.
- 401
The API key is missing, malformed, unknown, revoked or expired.
Example
Response 401{ "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "An API key is required; send it in the X-API-Key header or as \"Authorization: Bearer <key>\"" }, "requestId": "0199491c-8f3a-7c2e-9b1d-5e7f3a2c4b6d" } - 403
The key may not do this: missing scope, IP not on the allow-list, company, project or key suspended by SMS21, project archived, wallet suspended or destination blocked.
Example
Response 403{ "success": false, "error": { "code": "INSUFFICIENT_SCOPE", "message": "This API key does not have the required scope", "details": [ { "message": "requires scope sms:send" } ] }, "requestId": "0199491c-8f3a-7c2e-9b1d-5e7f3a2c4b6d" }
curl -X GET "https://sms21.in/v1/contacts/lists" \
-H "X-API-Key: $SMS21_API_KEY"{
"success": true,
"data": [
{
"id": "lst_01k55q8y4m3d9v7x2c6b0n1r8t",
"name": "October offers",
"description": null,
"contactCount": 2,
"createdAt": "2026-09-15T10:30:00.000Z",
"updatedAt": "2026-09-15T10:30:00.000Z"
}
],
"pagination": {
"limit": 25,
"hasMore": false,
"nextCursor": null
}
}