Retrieve Batch
GET /campaigns/:campaignId/batch/:batchId/messagesSupported Query Parameters
limit string (Mandatory)
limit string (Mandatory)after string (Optional)
after string (Optional)before string (Optional)
before string (Optional)search string (Optional)
search string (Optional){
"data": [
{
"createdAt": "2024-05-16T16:34:06.582+08:00",
"updatedAt": "2024-05-16T16:35:13.122+08:00",
"id": "<YOUR_MESSAGE_ID>",
"recipient": "6522222222",
"values": {
"body": "test"
},
"fullMessage": "This is a test message used for training purposes.\n\nOpen Government Products\n\n---\n\ntest\n\n---\n\nThis is an automated message sent by the Singapore Government.",
"latestStatus": "failure",
"templateBodyId": "<YOUR_GENERATED_TEMPLATE_ID>",
"campaignId": "<YOUR_GENERATED_CAMPAIGN_ID>",
"templateBody": {
"createdAt": "2024-05-06T11:00:03.467+08:00",
"updatedAt": "2024-05-06T11:00:03.467+08:00",
"id": "<YOUR_GENERATED_TEMPLATE_BODY_ID>",
"templateId": "<YOUR_GENERATED_TEMPLATE_ID>",
"language": "english",
"body": "{{body}}",
"creatorId": "<YOUR_GENERATED_CREATOR_ID>"
},
"messageAttempts": [
{
"sentAt": "2024-05-16T16:35:13.118+08:00",
"deliveredAt": null,
"createdAt": "2024-05-16T16:34:06.604+08:00",
"updatedAt": "2024-05-16T16:35:13.118+08:00",
"id": "<YOUR_GENERATED_MESSAGE_ATTEMPT_ID>",
"messageId": "<YOUR_GENERATED_MESSAGE_ID>",
"externalAttemptId": "",
"status": "failure",
"errorType": "server_error",
"errorCode": "server_unknown_error",
"metadata": {},
"creatorId": "<YOUR_GENERATED_CREATOR_ID>",
"creator": {
"email": "<YOUR_GENERATED_CAMAPIGN_CREATOR_EMAIL>"
}
}
],
"language": "english",
"creatorEmail": "<YOUR_GENERATED_CAMPAIGN_CREATOR_EMAIL>",
"numAttempts": 1
},
{
"createdAt": "2024-05-16T16:34:06.582+08:00",
"updatedAt": "2024-05-16T16:35:13.093+08:00",
"id": "<YOUR_GENERATED_MESSAGE_ID>",
"recipient": "6511119999",
"values": {
"body": "test"
},
"fullMessage": "This is a test message used for training purposes.\n\nOpen Government Products\n\n---\n\ntest\n\n---\n\nThis is an automated message sent by the Singapore Government.",
"latestStatus": "failure",
"templateBodyId": "<YOUR_GENERATED_TEMPLATE_ID>",
"campaignId": "<YOUR_GENERATED_CAMPAIGN_ID>",
"templateBody": {
"createdAt": "2024-05-06T11:00:03.467+08:00",
"updatedAt": "2024-05-06T11:00:03.467+08:00",
"id": "<YOUR_GENERATED_TEMPLATE_BODY_ID>",
"templateId": "<YOUR_GENERATED_TEMPLATE_ID>",
"language": "english",
"body": "{{body}}",
"creatorId": "<YOUR_GENERATED_CREATOR_ID>"
},
"messageAttempts": [
{
"sentAt": "2024-05-16T16:35:13.089+08:00",
"deliveredAt": null,
"createdAt": "2024-05-16T16:34:06.604+08:00",
"updatedAt": "2024-05-16T16:35:13.090+08:00",
"id": "<YOUR_GENERATED_MESSAGE_ATTEMPT_ID>",
"messageId": "<YOUR_GENERATED_MESSAGE_ID>",
"externalAttemptId": "",
"status": "failure",
"errorType": "delivery_error",
"errorCode": "delivery_unknown_error",
"metadata": {},
"creatorId": "<YOUR_GENERATED_CREATOR_ID>",
"creator": {
"email": "<YOUR_GENERATED_CAMAPIGN_CREATOR_EMAIL>"
}
}
],
"language": "english",
"creatorEmail": <YOUR_GENERATED_CAMAPIGN_CREATOR_EMAIL>,
"numAttempts": 1
},
{
"createdAt": "2024-05-16T16:34:06.582+08:00",
"updatedAt": "2024-05-16T16:36:05.595+08:00",
"id": <YOUR_GENERATED_MESSAGE_ID>,
"recipient": "6599999999",
"values": {
"body": "test"
},
"fullMessage": "This is a test message used for training purposes.\n\nOpen Government Products\n\n---\n\ntest\n\n---\n\nThis is an automated message sent by the Singapore Government.",
"latestStatus": "success",
"templateBodyId": "<YOUR_GENERATED_TEMPLATE_ID>",
"campaignId": "<YOUR_GENERATED_CAMPAIGN_ID>",
"templateBody": {
"createdAt": "2024-05-06T11:00:03.467+08:00",
"updatedAt": "2024-05-06T11:00:03.467+08:00",
"id": "<YOUR_GENERATED_TEMPLATE_BODY_ID>",
"templateId": "<YOUR_GENERATED_TEMPLATE_ID>",
"language": "english",
"body": "{{body}}",
"creatorId": "<YOUR_GENERATED_CREATOR_ID>"
},
"messageAttempts": [
{
"sentAt": "2024-05-16T16:35:43.009+08:00",
"deliveredAt": null,
"createdAt": "2024-05-16T16:34:06.604+08:00",
"updatedAt": "2024-05-16T16:36:05.593+08:00",
"id": "<YOUR_GENERATED_MESSAGE_ATTEMPT_ID>",
"messageId": "<YOUR_GENERATED_MESSAGE_ID>",
"externalAttemptId": "<YOUR_GENERATED_EXTERNAL_ATTEMPT_ID>",
"status": "success",
"errorType": null,
"errorCode": null,
"metadata": {},
"creatorId": "<YOUR_GENERATED_CREATOR_ID>",
"creator": {
"email": "<YOUR_GENERATED_CAMAPIGN_CREATOR_EMAIL>"
}
}
],
"language": "english",
"creatorEmail": <YOUR_GENERATED_CAMAPIGN_CREATOR_EMAIL>,
"numAttempts": 1
}
],
"pageData": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "WyIyMDI0LTA1LTE2VDE2OjM0OjA2LjU5MCswODowMCIsIjMwMjE5Il0=",
"endCursor": "WyIyMDI0LTA1LTE2VDE2OjM0OjA2LjU5MCswODowMCIsIjMwMjE3Il0="
}
}
Last updated
Was this helpful?