Platform
Docs
Solutions
ContactLog In
Courier Live Header
COURIER

Getting the Most out of Courier Logs

Aydrian Howard

August 26, 2020

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:

  • Explain the basics of the Courier Logs
  • Walk through the lifecycle of a notification
  • Explore the notification statuses
  • Use the Messages API to retrieve message events and history

Be sure to Like the video and Subscribe to our YouTube channel.

Retrieving Log Details Programmatically

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.

Listing Messages

You can retrieve a pageable list of log messages using GET /messages.

1
curl --request GET \
2
--url https://api.courier.com/messages \
3
--header 'authorization: Bearer <AUTH_TOKEN>'

Fetching a single Message

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}.

1
curl --request GET \
2
--url https://api.courier.com/messages/1-5f3d7aa7-e4b8f9ba9a4672ba5d46754c \
3
--header 'authorization: Bearer <AUTH_TOKEN>'

Getting Message History

If you would like to retrieve the details provided in the log details timeline, you can use GET /messages/{message_id}/history.

1
curl --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

More from Courier

data-thumbnail
COURIER

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

Raymond See

February 16, 2023

QOTD Thumbnail
ENGINEERINGCOURIER

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

Prakhar Srivastav

February 09, 2023

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Platform

Users

Content

Channels

Sending

Workflows

Preferences

Inbox

Workspaces

Observability

API Status

Changelog

© 2024 Courier. All rights reserved.