Skip to main content

List the current account's broadcast campaigns

GET/v1/broadcasts

List the current account's broadcast campaigns, with dispatch progress and delivery result counts.

Authentication

Send Authorization: Bearer <API_KEY> in the request headers, with scope messages:read. Which resources an API Key can reach is determined by its current authorization scope.

Request​

Base URL: https://api.bluehola.com

Parameters​

NameInRequiredType / constraintsDescription
limitqueryNointeger 1..200Defaults to 50. Values above 200 are treated as 200; non-positive or unparseable values are treated as 50
beforequeryNoISO 8601Pagination: pass the broadcast.createdAt of the last entry on the previous page. An unparseable value returns 400 VALIDATION_FAILED
idempotencyKeyqueryNostringFind the campaign created with this Idempotency-Key (0 or 1 entries)
phoneNumberIdqueryRequired for customer KeysstringReturn only campaigns sent from this number (pn_...). A customer Key must pass a number its customer entity owns, otherwise 403

Response​

StatusDescription
200OK
4xxClient error

For the common error envelope and how to handle it, see Error Codes.

Notes​

limit defaults to 50 with a ceiling of 200; entries are sorted by creation time, newest first. Page with before (an ISO timestamp: the broadcast.createdAt of the last entry on the previous page). idempotencyKey finds a campaign by the Idempotency-Key used when creating it (0 or 1 entries) — use it to check whether a create request whose outcome is unknown actually created the campaign. phoneNumberId limits the list to one sending number and combines with the other filters. Each entry carries two separate sets of counts, dispatch (dispatch progress) and delivery (delivery outcome), which mean different things — see GET /v1/broadcasts/{id}.