List a batch run's recipients
GET/v1/invitation_batches/{batch}/recipients
Lists a run’s per-recipient results, in the order you submitted them, one page at a time.
Behavior
- Page with
cursor: pass the previous page’snext_cursorback verbatim, and stop when it comes back empty. Rows are ordered by your own array index, which never changes, so a page cannot skip or repeat a row while the run progresses underneath you. - Filter with
stateto avoid paging 10,000 rows to find 40 problems;failedorskippedand read one page. An unknown value is refused, never silently answered with an empty page. - Unknown runs, and another brand’s; return HTTP 404.
Query Parameters
cursor: optional string
The previous page’s next_cursor, verbatim; absent starts at your first recipient. Not a cursor this API issued returns HTTP 400 code 1013.
List a batch run's recipients
curl https://messages.api.linqapp.com/v1/invitation_batches/$BATCH/recipients \
-H "Authorization: Bearer $LINQ_AMB_API_KEY"{
"data": [
{
"idx": 1,
"to": "tel:+15555550188",
"reference_id": "ride-88215",
"state": "failed",
"reason": {
"code": "consent_required",
"message": "this recipient withdrew consent after the batch was accepted"
}
}
],
"next_cursor": ""
}Returns Examples
{
"data": [
{
"idx": 1,
"to": "tel:+15555550188",
"reference_id": "ride-88215",
"state": "failed",
"reason": {
"code": "consent_required",
"message": "this recipient withdrew consent after the batch was accepted"
}
}
],
"next_cursor": ""
}