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
Tools and Techniques to Establish Your Data Team Early
How tools like Segment, Metabase, Snowflake, Census, and others, can help establish a data team from the very early stages in a startup.
Raymond See
February 16, 2023
Develop a Motivational QOTD with Courier and GPT2
Courier and OpenGPT2 in action: build a service that sends friends and family an AI generated motivational quote of the day.
Prakhar Srivastav
February 09, 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
© 2024 Courier. All rights reserved.