During our August 19th Courier Live, Tony Nguyen from our engineering team joined me to talk about my favorite Courier feature, the logs. We presented a high level overview of the logs and dove into the details of each timeline event in the Courier Application. We then covered how you could retrieve the same information using the Messages API.
Check out the video below to watch us:
While Courier provides a great graphical experience for viewing their logs, sometimes you need to be able to grab that information as part of a backend process. This can be done using the Messages API.
You can retrieve a pageable list of log messages using GET /messages.
1curl --request GET \2--url https://api.courier.com/messages \3--header 'authorization: Bearer <AUTH_TOKEN>'
Once you have a messageId, either from the call above or the response of a send call, you can use it to get more details using GET /messages/{message_id}.
1curl --request GET \2--url https://api.courier.com/messages/1-5f3d7aa7-e4b8f9ba9a4672ba5d46754c \3--header 'authorization: Bearer <AUTH_TOKEN>'
If you would like to retrieve the details provided in the log details timeline, you can use GET /messages/{message_id}/history.
1curl --request GET \2--url https://api.courier.com/messages/1-5f3d7aa7-e4b8f9ba9a4672ba5d46754c/history \3--header 'authorization: Bearer <AUTH_TOKEN>'
You can learn more about the Courier API from the Courier API Reference Documentation.
Is there something you’d like to see us do using Courier? Let us know and it might be the subject of our next Courier Live. We stream a new Courier Live every Wednesday at noon Pacific. Follow us on Twitch to be notified when we go live.
-Aydrian
Automate Slack and MS Teams Notifications using Node.js
Automate messages via Slack, MS Teams, and any other channel of your choice from your Node.js applications.
Shreya Gupta
March 22, 2023
Automate Slack and Microsoft Teams Notifications using Python
How to send and automate notifications via Slack and Microsoft Teams, using Courier to make these tools a seamless part of how your app communicates with users.
Shreya Gupta
March 15, 2023
Free Tools
Comparison Guides
Send up to 10,000 notifications every month, for free.
Get started for free
Send up to 10,000 notifications every month, for free.
Get started for free
© 2023 Courier. All rights reserved.