Create or upsert a subscriber
subscribers_upsertCreates a new subscriber when the email does not exist in the workspace. New subscribers are Active unless you send another status. If the email already exists, the API updates the existing subscriber unless create_only is true. Making an existing Unsubscribed, Complained, Bounced, or Blocked subscriber Active again needs reactivate: true. Effect: external-email. Retry with the same idempotency_key. Permissions: live_actions:write, subscribers:write. API reference: https://mailrith.com/developers/api-reference.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "subscribers_upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The exact JSON request body defined by the Mailrith public API contract. | |
| idempotency_key | No | Optional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| response | No | ||
| request_id | Yes | The stable correlation ID for this MCP tool invocation. | |
| operation_id | Yes | The stable Mailrith public API operation ID. |