Documentation Index
Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Installation
To implement Inbox in React, youβll need a backend to retrieve messages. This functionality is managed through theCourierInbox component and requires an active Courier account.
Steps to Set Up Inbox
Create a JWT
After installation, youβll need a JWT to authenticate your users. Each JWT should be generated for an individual user by your backend and securely provided to your frontend client. For details, see our full How to Send a JWT from Your Backend tutorial, which provides language-specific backend examples.Required JWT scopes for Inbox:An example payload to the issue-token API looks like :
user_id:{{userId}}- Restricts the token to a specific userinbox:read:messages- Allows fetching inbox messagesinbox:write:events- Allows marking messages as read/unread or archive
You can designate how long tokens last by passing an
expires_in property to the token generation.Send a Notification to Inbox
To test your Inbox setup, send a message using the Courier Send API. Just set theto field to your userβs ID, add a title and body, and set routing to use only the "inbox" channel as shown in the example below.
Use curl, Postman, or any HTTP client with your API key. If successful, youβll see the message appear in your Inbox UI.

Whatβs Next
Send a JWT from Your Backend
Secure your Inbox with backend JWT authentication
Authentication Reference
Deep dive into JWT scopes and token management