This quickstart demonstrates how to send messages from applications using various programming languages.

Prerequisites

  1. Sign-up for a Courier Account and Workspace
  2. Add an integration.
  3. Make sure you have installed the latest version of your preferred programming language
  4. Install the Courier SDK for your language

Installation

Initialize the SDK

First, import the Courier client and initialize it with your authorization token:

Send a Message

Here’s how to send a basic notification message:

Message Properties

The message object contains these main properties:

  • to: Identifies the recipient (email address, phone number, etc.)
  • content: The notification’s title and body
  • data: Variables to populate message templates
  • routing: Controls which channel(s) deliver the message

The API call returns a request ID:

{ "requestId": "87e7c05b-4f46-fda24e356e23" }

Monitor notification status in the logs.

Questions? Join Our Community!

Connect with our team and other developers in our Discord Community