List campaigns
/v1/sms/bulk Scopereports:read
Campaigns of the key’s project, newest first.
Parameters4
statusquerystringOnly campaigns in this state.
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
A page of campaigns.
- 400
Invalid filter or cursor.
Example
Response 400{ "success": false, "error": { "code": "VALIDATION_FAILED", "message": "Invalid cursor", "details": [ { "field": "cursor", "message": "cursor is invalid or expired" } ] }, "requestId": "0199491c-8f3a-7c2e-9b1d-5e7f3a2c4b6d" } - 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" } - 429
Rate limited. Wait
Retry-Afterseconds, then retry with the same Idempotency-Key.Example
Response 429{ "success": false, "error": { "code": "RATE_LIMITED", "message": "Rate limit exceeded for this API key" }, "requestId": "0199491c-8f3a-7c2e-9b1d-5e7f3a2c4b6d" } - 503
Temporarily unavailable, or live sending paused by SMS21. Retry later with the same Idempotency-Key.
Example
Response 503{ "success": false, "error": { "code": "SERVICE_UNAVAILABLE", "message": "Service temporarily unavailable" }, "requestId": "0199491c-8f3a-7c2e-9b1d-5e7f3a2c4b6d" }
curl -X GET "https://sms21.in/v1/sms/bulk" \
-H "X-API-Key: $SMS21_API_KEY"{
"success": true,
"data": [
{
"batchId": "bat_01k55q8y4m3d9v7x2c6b0n1r8t",
"name": "October offers",
"status": "queued",
"environment": "live",
"channel": "sms",
"type": "promotional",
"deviceId": null,
"templateId": "tmpl_01k55q8y4m3d9v7x2c6b0n1r8t",
"senderId": "ACMESHOP",
"scheduledAt": null,
"counts": {
"recipients": 2500,
"expanded": 0,
"skipped": 12,
"pending": 2488
},
"failure": null,
"createdAt": "2026-09-15T10:30:00.000Z",
"startedAt": null,
"completedAt": null,
"cancelledAt": null
}
],
"pagination": {
"limit": 20,
"hasMore": false,
"nextCursor": null
}
}