Skip to main content

GET /messages/:message_id

GEThttps://api.courier.com/messages/:message_id
Fetch the status of a message you've previously sent.
PATH PARAMS
message_idstringrequired
A unique identifier associated with the message you wish to retrieve (results from a send).
Responses
AUTH TOKEN
curl --request GET \
--url https://api.courier.com/messages/1-5e2b2615-05efbb3acab9172f88dd3f6f \
--header 'Accept: application/json'
Response Example
{
"id": "1-5e2b2615-05efbb3acab9172f88dd3f6f",
"status": "DELIVERED",
"enqueued": 1562611073426,
"sent": 1562611074138,
"delivered": 1562611077139,
"opened": 1562611083411,
"clicked": 1562611084123,
"recipient": "CC607F6E84A34305AE98B72C",
"event": "my-event",
"notification": "TAFGNB3GNQ4MZVHW4WV4R8Q8ZVN4",
"error": "400 Bad Request",
"reason": "UNSUBSCRIBED",
"providers": [
{
"sent": 1562611074138,
"delivered": 1562611077139,
"clicked": 1562611084123,
"opened": 1562611083411,
"error": "400 Bad Request",
"provider": "twilio",
"status": "SENT"
}
]
}