Courier MCP by usefulapi
v1.2.1Read messages, templates, brands and lists; send messages and manage list subscribers in Courier.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
courier_list_messages List messages
List recently sent messages, newest first, with status, recipient, channel and provider. Filter by status, event, list, recipient, tag or enqueued_after. Paged by cursor. GET /messages.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
enqueued_after | string | Only messages enqueued after this value, as the API defines it. |
event | string | Filter by notification event id. |
list | string | Filter by list id. |
provider | array | Filter by provider key (repeat values allowed). |
recipient | string | Filter by recipient user id. |
status | array | Filter by message status (repeat values allowed). |
tag | array | Filter by tag (repeat values allowed). |
tenant_id | string | Filter by tenant id. |
courier_get_message Get a message
Get one message by id (the requestId returned by courier_send_message), with its delivery status and provider. GET /messages/{message_id}.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The message id. |
courier_get_message_history Get message history
Get the delivery history events for one message (status changes per channel). GET /messages/{message_id}/history.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The message id. |
type | string | Optional history filter type, as the API defines it. |
courier_list_notification_templates List notification templates
List the workspace notification templates with their name, tags, brand, routing and draft or published state. GET /notifications.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
tags | string | Filter by tags, as the API defines them. |
courier_get_notification_template Get a notification template
Get one notification template by id or alias. Returns the published version by default; version=draft returns the unpublished one. GET /notifications/{id}.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The notification template id (nt_...) or its alias. |
version | string | Which version to read (default published). |
courier_list_brands List brands
List the brands (logo, colors, layout) that templates can use. GET /brands.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
courier_get_brand Get a brand
Get one brand by id, with its colors, logo and layout settings. GET /brands/{brand_id}.
| Parameter | Type | Description |
|---|---|---|
brand_id * | string | The brand id. |
courier_list_lists List lists
List the static recipient lists in the workspace. Optionally filter by list id pattern. GET /lists.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
pattern | string | List id pattern filter, as the API defines it. |
courier_get_list Get a list
Get one list by id, with its name and metadata. GET /lists/{list_id}.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The list id. |
courier_list_list_subscribers List subscribers of a list
List the user subscriptions of one list, with their preferences. Paged by cursor. GET /lists/{list_id}/subscriptions.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The list id. |
cursor | string | Cursor from a previous page's paging.cursor. |
courier_get_profile Get a user profile
Get one user profile: the contact details Courier delivers to (email, phone, push tokens) and custom data. GET /profiles/{user_id}.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | The user id. |
courier_get_user_preferences Get user preferences
Get one user's notification preferences per topic and per channel. GET /users/{user_id}/preferences.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | The user id. |
tenant_id | string | Read the preferences in this tenant. |
courier_list_providers List providers
List the channel providers configured in the workspace (email, SMS, push, chat). GET /providers.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
courier_list_journeys List journeys
List the multi-step journeys (workflows) in the workspace. GET /journeys.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
version | string | Read this version, as the API defines it. |
courier_list_broadcasts List broadcasts
List one-off broadcasts (sends to a list or audience), with their state. GET /broadcasts.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
limit | integer | Results per page (1 to 1000). |
courier_list_automations List automations
List the automation templates that you can invoke with courier_invoke_automation. GET /automations.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
version | string | Read this version, as the API defines it. |
courier_list_tenants List tenants
List tenants (organizations, teams or accounts that users belong to). GET /tenants.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
limit | integer | Results per page. |
parent_tenant_id | string | Only tenants under this parent tenant id. |
courier_list_audit_events List audit events
List workspace audit events (who changed what in the console or through the API). Paged by cursor. GET /audit-events.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous page's paging.cursor. |
courier_send_message Send a message
Send a notification from a template to one recipient, a list or a tenant. Courier routes it to the channels in the template. Sends real messages. Pass an idempotency_key to make retries safe. Returns a requestId. POST /send.
| Parameter | Type | Description |
|---|---|---|
template * | string | Template id (nt_...) or alias to send. |
to * | object | Who receives the message: set one of user_id, email, phone_number, list_id or tenant_id. |
brand_id | string | Brand id to use instead of the template's brand. |
data | object | Variables for the template. |
idempotency_key | string | A unique key, such as a UUID, reused only for a retry of the same send. |
courier_cancel_message Cancel a message
Cancel a message that is queued or scheduled and not yet delivered. POST /messages/{message_id}/cancel.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | The message id. |
courier_subscribe_user_to_list Subscribe a user to a list
Subscribe one user to a list, with optional per-topic preferences. Idempotent: subscribing again updates the subscription. PUT /lists/{list_id}/subscriptions/{user_id}.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The list id. |
user_id * | string | The user id. |
preferences | object | Per-topic channel preferences, as the API defines them. |
courier_unsubscribe_user_from_list Unsubscribe a user from a list
Remove one user's subscription from a list, so the list no longer sends to that user. DELETE /lists/{list_id}/subscriptions/{user_id}.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | The list id. |
user_id * | string | The user id. |
courier_invoke_automation Invoke an automation
Run an automation template for one recipient, with data. The automation sends its messages. POST /automations/{templateId}/invoke.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | The automation template id (from courier_list_automations). |
brand | string | Brand id to use. |
data | object | Data for the automation steps. |
profile | object | Profile fields to use for the recipient. |
recipient | string | The recipient user id. |
courier_track_event Track an event
Send a track event for one user, tied to a message id, so journeys and automations can react to it. Records a real event in the workspace. POST /inbound/courier.
| Parameter | Type | Description |
|---|---|---|
event * | string | Event name, such as order_shipped. |
message_id * | string | The message id this event relates to (any id you choose if none). |
user_id * | string | The user id. |
properties | object | Event properties. |