Courier MCP by usefulapi

v1.2.1
io.usefulapi/courier Checked 4 days ago Published 1 day ago

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

ParameterTypeDescription
cursorstringCursor from a previous page's paging.cursor.
enqueued_afterstringOnly messages enqueued after this value, as the API defines it.
eventstringFilter by notification event id.
liststringFilter by list id.
providerarrayFilter by provider key (repeat values allowed).
recipientstringFilter by recipient user id.
statusarrayFilter by message status (repeat values allowed).
tagarrayFilter by tag (repeat values allowed).
tenant_idstringFilter 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}.

ParameterTypeDescription
message_id *stringThe 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.

ParameterTypeDescription
message_id *stringThe message id.
typestringOptional 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.

ParameterTypeDescription
cursorstringCursor from a previous page's paging.cursor.
tagsstringFilter 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}.

ParameterTypeDescription
template_id *stringThe notification template id (nt_...) or its alias.
versionstringWhich version to read (default published).

courier_list_brands List brands

List the brands (logo, colors, layout) that templates can use. GET /brands.

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

ParameterTypeDescription
brand_id *stringThe brand id.

courier_list_lists List lists

List the static recipient lists in the workspace. Optionally filter by list id pattern. GET /lists.

ParameterTypeDescription
cursorstringCursor from a previous page's paging.cursor.
patternstringList 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}.

ParameterTypeDescription
list_id *stringThe 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.

ParameterTypeDescription
list_id *stringThe list id.
cursorstringCursor 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}.

ParameterTypeDescription
user_id *stringThe 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.

ParameterTypeDescription
user_id *stringThe user id.
tenant_idstringRead the preferences in this tenant.

courier_list_providers List providers

List the channel providers configured in the workspace (email, SMS, push, chat). GET /providers.

ParameterTypeDescription
cursorstringCursor from a previous page's paging.cursor.

courier_list_journeys List journeys

List the multi-step journeys (workflows) in the workspace. GET /journeys.

ParameterTypeDescription
cursorstringCursor from a previous page's paging.cursor.
versionstringRead 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.

ParameterTypeDescription
cursorstringCursor from a previous page's paging.cursor.
limitintegerResults per page (1 to 1000).

courier_list_automations List automations

List the automation templates that you can invoke with courier_invoke_automation. GET /automations.

ParameterTypeDescription
cursorstringCursor from a previous page's paging.cursor.
versionstringRead this version, as the API defines it.

courier_list_tenants List tenants

List tenants (organizations, teams or accounts that users belong to). GET /tenants.

ParameterTypeDescription
cursorstringCursor from a previous page's paging.cursor.
limitintegerResults per page.
parent_tenant_idstringOnly 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.

ParameterTypeDescription
cursorstringCursor 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.

ParameterTypeDescription
template *stringTemplate id (nt_...) or alias to send.
to *objectWho receives the message: set one of user_id, email, phone_number, list_id or tenant_id.
brand_idstringBrand id to use instead of the template's brand.
dataobjectVariables for the template.
idempotency_keystringA 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.

ParameterTypeDescription
message_id *stringThe 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}.

ParameterTypeDescription
list_id *stringThe list id.
user_id *stringThe user id.
preferencesobjectPer-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}.

ParameterTypeDescription
list_id *stringThe list id.
user_id *stringThe 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.

ParameterTypeDescription
template_id *stringThe automation template id (from courier_list_automations).
brandstringBrand id to use.
dataobjectData for the automation steps.
profileobjectProfile fields to use for the recipient.
recipientstringThe 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.

ParameterTypeDescription
event *stringEvent name, such as order_shipped.
message_id *stringThe message id this event relates to (any id you choose if none).
user_id *stringThe user id.
propertiesobjectEvent properties.