Mailrith Email Marketing

v2.1.0
com.mailrith/mailrith Checked 16 hours ago Published 15 days ago

Manage Subscribers, Broadcasts, Sequences, Automations, and reporting in Mailrith.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

discovery_get_capabilities Get authenticated API capabilities

Returns the current workspace context, discovery URLs, shared request conventions, supported webhook events, and public resource operations available to the authenticated bearer credential. Permission: none. API reference: https://mailrith.com/developers/api-reference.

workspace_get Get the current workspace

Returns the authenticated workspace profile and mailing context used by broadcasts, sequences, automations, forms, and magic links. Permission: workspace:read. API reference: https://mailrith.com/developers/api-reference.

sender_identities_list List sender identities

Returns a bounded page of enabled sender names, addresses, and provider types that can be selected for Broadcasts and Sequences. Provider credentials and configuration are never returned. Permission: workspace:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
limitintegerMaximum number of sender identities to return.
starting_afterstringOpaque next_cursor returned by the previous sender identity page.

sender_identities_get Get a sender identity

Returns one enabled sender name, address, and provider type by stable identifier. Provider credentials and configuration are never returned. Permission: workspace:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
sender_identity_id *stringThe sender identity identifier.

analytics_create_report Create or reuse an analytics report

Runs from compact rollups. Ranges through 31 days complete inline; longer ranges are queued. Results expire after 24 hours and never exceed 100 rows. Effect: workspace-change. Retry with the same idempotency_key. Permission: analytics:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

analytics_get_report Get an analytics report

Returns one unexpired bounded analytics report by identifier. Permission: analytics:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
report_id *stringStable analytics report identifier.
limitintegerMaximum aggregate row count, from 1 to 50.
starting_afterstringOpaque next_cursor returned by the previous report page.

subscribers_list List subscribers

Returns subscribers in the authenticated workspace, sorted from newest to oldest. Permission: subscribers:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
cold_onlybooleanWhen `true`, return only cold subscribers.
emailstringFilter subscribers by an exact subscriber email address.
limitintegerMaximum number of subscribers to return. Defaults to 25 and is capped at 100.
searchstringFilter subscribers by name, email, or status.
sequence_idstringReturn subscribers that match this sequence ID. Repeat `sequence_id` or use `sequence_ids` to match any of several sequences.
sequence_idsstringComma-separated sequence IDs. By default, the API returns only subscribers who are active in any listed sequence.
sequence_operatorstringControls how sequence filters are applied. Defaults to `is_active_in_any_of`.
starting_afterstringUse the opaque cursor from the previous page to request the next page.
statusstringFilter subscribers by subscriber status.
tag_idstringReturn subscribers that currently have this tag ID. Repeat `tag_id` or use `tag_ids` to match any of several tags.
tag_idsstringComma-separated tag IDs. By default, the API returns subscribers who have any listed tag.
tag_operatorstringControls how tag filters are applied. Defaults to `has_any_of`.

subscribers_get Get a subscriber

Returns one Subscriber by its stable identifier from the authenticated workspace. Permission: subscribers:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
subscriber_id *stringThe Subscriber identifier.

subscribers_upsert Create or upsert a subscriber

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

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

subscribers_update Update a subscriber

Updates profile fields (email, name, subscribed date, and country) and custom field values for one subscriber. To change status, tags, or sequences, use subscribers_update_status, subscribers_add_tag, subscribers_remove_tag, subscribers_add_to_sequence, or subscribers_remove_from_sequence instead. Fields omitted from the request stay unchanged. Blank optional custom field values also leave saved values unchanged, and filled-in invalid values are rejected. Effect: subscriber-change. Retry after reading the current resource state. Permission: subscribers:write. API reference: https://mailrith.co…

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
subscriber_id *stringThe subscriber identifier.

subscribers_update_status Change Subscriber sending eligibility

Changes the delivery status for one Subscriber without changing profile, targeting, or Sequence enrollment fields. Making an Unsubscribed, Complained, Bounced, or Blocked Subscriber Active again needs reactivate: true. The consent_evidence object is optional; when it is sent, its collected_at value must include the correct UTC offset and must not be later than Mailrith's server time. Effect: external-email. Retry after reading the current resource state. Permissions: live_actions:write, subscribers:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
subscriber_id *stringThe Subscriber identifier.

subscribers_add_tag Add a Tag to a Subscriber

Adds the selected Tag to a Subscriber. If the Subscriber already has the Tag, the API returns the Subscriber unchanged. Effect: external-email. Retry after reading the current resource state. Permissions: live_actions:write, subscribers:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
subscriber_id *stringThe Subscriber identifier.
tag_id *stringThe Tag identifier.

subscribers_remove_tag Remove a tag from a subscriber

Removes the selected tag from a subscriber. If the subscriber does not have the tag, the API returns the subscriber unchanged. Effect: external-email. Retry after reading the current resource state. Permissions: live_actions:write, subscribers:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
subscriber_id *stringThe subscriber identifier.
tag_id *stringThe tag identifier.

subscribers_add_to_sequence Add a subscriber to a sequence

Adds the selected subscriber to the selected sequence. If the subscriber is already in the sequence, the API returns the subscriber unchanged. Effect: external-email. Retry after reading the current resource state. Permissions: live_actions:write, subscribers:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
sequence_id *stringThe sequence identifier.
subscriber_id *stringThe subscriber identifier.

subscribers_remove_from_sequence Remove a subscriber from a sequence

Removes the selected subscriber from the selected sequence. If the subscriber is not in the sequence, the API returns the subscriber unchanged. Effect: subscriber-change. Retry after reading the current resource state. Permissions: live_actions:write, subscribers:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
sequence_id *stringThe sequence identifier.
subscriber_id *stringThe subscriber identifier.

tags_list List tags

Returns tags in the authenticated workspace. Permission: tags:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
limitintegerMaximum number of tags to return.
searchstringFilter Tags by name or description. Retrieve a known Tag ID through the item endpoint.
starting_afterstringUse the opaque cursor from the previous page to request the next page.

tags_get Get a tag

Returns one Tag from the authenticated workspace. Permission: tags:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
tag_id *stringThe Tag identifier.

tags_create Create a tag

Creates a new tag in the authenticated workspace. The GDPR consent tag names can be created and applied like other tags when you need to apply consent collected outside Mailrith. Tag-level double opt-in fields are no longer accepted; configure double opt-in on forms and landing pages instead. Effect: workspace-change. Retry with the same idempotency_key. Permission: tags:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

custom_fields_list List custom fields

Returns a bounded page of custom fields in the authenticated workspace, including each field's exact ready-to-use email personalization token. Permission: custom_fields:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
limitintegerMaximum number of custom fields to return.
searchstringFilter custom fields by label or type.
starting_afterstringUse the opaque cursor from the previous page to request the next page.

custom_fields_get Get a custom field

Returns one custom field from the authenticated workspace, including its exact ready-to-use email personalization token. Permission: custom_fields:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
custom_field_id *stringThe custom field identifier.

segments_list List segments

Returns saved segments from the authenticated workspace. Permission: segments:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
limitintegerThe maximum number of segments to return.
searchstringFilter Segments by name or description.
starting_afterstringThe opaque cursor from the previous page of saved segments.

segments_get Get a segment

Returns one saved segment from the authenticated workspace. Permission: segments:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
segment_id *stringThe identifier of the segment to return.

segments_preview Preview a segment definition

Returns subscriber counts for an unsaved segment definition. Include `current_segment_id` when previewing edits to an existing segment so circular segment references are rejected before saving. Permission: segments:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.

broadcasts_list List broadcasts

Returns broadcast drafts, scheduled sends, active sends, and completed sends. Permission: broadcasts:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
limitintegerMaximum number of items to return.
searchstringFilter Broadcasts by subject, preview text, status, or sender.
starting_afterstringOpaque cursor returned by the previous page.

broadcasts_create Create a broadcast

Creates a broadcast draft in the authenticated workspace. Effect: workspace-change. Retry with the same idempotency_key. Permission: broadcasts:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

broadcasts_get Get a broadcast

Returns a broadcast draft, scheduled send, active send, or completed send. Permission: broadcasts:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
broadcast_id *stringThe broadcast identifier.

broadcasts_update Update a broadcast

Updates an existing Broadcast draft. Scheduled, running, completed, and failed Broadcasts cannot be changed here. Before changing a scheduled Broadcast, read it by ID and retain its scheduled_at in the current task only. If the saved time is no longer safely in the future, ask the user for a new time before unscheduling. Otherwise unschedule it, apply the update, reschedule it for the same time, and verify both status and scheduled_at. If the update fails after unscheduling, restore the unchanged Broadcast to the same future time when possible. If the schedule cannot be restored, leave it as a…

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
broadcast_id *stringThe broadcast identifier.

broadcasts_preflight Inspect broadcast readiness

Optionally checks the current Subscriber estimate, provider capacity, sender setup, event tracking, and blocking issues. This diagnostic is not required before starting a durable send. Permission: broadcasts:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
broadcast_id *stringThe broadcast identifier.

broadcasts_send_test Send a broadcast test email

Sends a test message from an existing Broadcast that has a sender. Provide a saved Subscriber ID for personalization; use subscribers_list to find one when needed. The recipient may be any test inbox and does not have to match the saved Subscriber. Effect: external-email. Retry with the same idempotency_key. Permissions: live_actions:write, subscribers:read, broadcasts:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
broadcast_id *stringThe broadcast identifier.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

broadcasts_schedule Schedule or reschedule a broadcast

Schedules a draft for future delivery, or changes the delivery time of an existing scheduled Broadcast. This uses Mailrith's durable scheduled-send path and does not start delivery immediately. Effect: external-email. Retry after reading the current resource state. Permissions: live_actions:write, broadcasts:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
broadcast_id *stringThe broadcast identifier.

broadcasts_unschedule Unschedule a broadcast

Returns a scheduled Broadcast to draft state before delivery starts. Effect: workspace-change. Retry after reading the current resource state. Permissions: live_actions:write, broadcasts:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
broadcast_id *stringThe broadcast identifier.

broadcasts_send Send a broadcast now

Immediately creates durable preparation for a broadcast draft or scheduled send. Mailrith calculates the exact Subscriber total and checks provider readiness in the background before delivery. A 202 response means the durable send was accepted, not that provider delivery is complete. Reuse the same idempotency key if the response is lost. Effect: external-email. Retry with the same idempotency_key. Permissions: live_actions:write, broadcasts:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
broadcast_id *stringThe broadcast identifier.
bodyobjectThe exact JSON request body defined by the Mailrith public API contract.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

broadcasts_cancel Cancel a broadcast send

Requests cancellation for delivery work that has not reached the provider. Provider-accepted emails cannot be recalled. Repeat the same request with the same idempotency key when the response is lost. Effect: external-email. Retry with the same idempotency_key. Permissions: live_actions:write, broadcasts:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
broadcast_id *stringThe broadcast identifier.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

broadcasts_get_send_progress Get broadcast send progress

Returns bounded delivery progress, current rates, timing, outcome counts, and pause state. Poll until terminal is true; use 5 to 10 second intervals while progress changes and back off to 30 seconds when unchanged. Permission: broadcasts:read. Polling: wait at least 2 seconds, use exponential backoff up to 30 seconds, stop at a terminal state, and stop after 15 minutes. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
broadcast_id *stringThe broadcast identifier.

sequences_list List sequences

Returns sequences in the authenticated workspace. Permission: sequences:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
limitintegerMaximum number of sequences to return.
searchstringFilter sequences by name, status, or sender details. Retrieve a known Sequence ID through the item endpoint.
starting_afterstringUse the opaque cursor from the previous page to request the next page.

sequences_create Create a sequence

Creates a sequence in the authenticated workspace. Effect: workspace-change. Retry with the same idempotency_key. Permission: sequences:write. API reference: https://mailrith.com/developers/api-reference.

sequences_get Get a sequence

Returns one sequence from the authenticated workspace. Permission: sequences:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
sequence_id *stringThe sequence identifier.

sequences_update Update a sequence

Updates an existing paused Sequence. Before changing a running Sequence, read it by ID, retain its status in the current task only, pause it, apply the update, and use bounded direct item reads until is_updating is false. Run preflight, return it to running only if it was running before and preflight passes, and verify the final status. If the update fails before changing the Sequence, restore its prior running status when preflight passes. If readiness or the prior status cannot be restored, leave it paused and immediately report the failure; never activate a Sequence that was not already run…

sequences_preflight Check sequence readiness

Checks the saved Sequence, its published emails, and its sender without changing data or sending email. Permission: sequences:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
sequence_id *stringThe Sequence identifier.

sequences_preview_journey Preview a sequence journey

Returns the bounded saved email timeline and shows which messages a selected Subscriber is eligible to receive, without enrolling the Subscriber or sending email. Permissions: subscribers:read, sequences:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
sequence_id *stringThe Sequence identifier.
subscriber_id *stringThe saved Subscriber whose personalization and targeting should be previewed.

sequences_send_test Send sequence test messages

Sends up to five selected saved Sequence emails to one explicit test address. This does not enroll a Subscriber, start the Sequence, or write delivery activity. Effect: external-email. Retry with the same idempotency_key. Permissions: live_actions:write, subscribers:read, sequences:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
sequence_id *stringThe Sequence identifier.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

sequences_update_status Activate or pause a sequence

Starts or pauses one Sequence without changing its content or delivery settings. Effect: external-email. Retry after reading the current resource state. Permissions: live_actions:write, sequences:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
sequence_id *stringThe Sequence identifier.

automations_list List automations

Returns automations in the authenticated workspace. Permission: automations:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
limitintegerMaximum number of automations to return.
searchstringFilter Automations by name or status.
starting_afterstringUse the opaque cursor from the previous page to request the next page.

automations_create Create an automation

Creates an automation in the authenticated workspace. Effect: workspace-change. Retry with the same idempotency_key. Permission: automations:write. API reference: https://mailrith.com/developers/api-reference.

automations_get Get an automation

Returns one automation from the authenticated workspace. Permission: automations:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
automation_id *stringThe automation identifier.

automations_update Update an automation

Updates an existing draft or paused Automation. Before changing a running Automation, read it by ID, retain its status in the current task only, pause it, apply the update, and use bounded direct item reads until is_updating is false. Run preflight, return it to running only if it was running before and preflight passes, and verify the final status. If the update fails before changing the Automation, restore its prior running status when preflight passes. If readiness or the prior status cannot be restored, leave it paused and immediately report the failure; never activate an Automation that w…

automations_preflight Check automation readiness

Checks the saved Automation definition and email delivery prerequisite without running any action. Permission: automations:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
automation_id *stringThe Automation identifier.

automations_preview_journey Preview an automation journey

Shows the bounded path a selected Subscriber would take through the current saved conditions without running actions or writing history. Permissions: subscribers:read, automations:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
automation_id *stringThe Automation identifier.
subscriber_id *stringThe saved Subscriber whose current state should be evaluated.

automations_send_test Send automation test messages

Sends up to five selected saved Automation email steps to one explicit test address. This does not start the Automation or run other actions. Effect: external-email. Retry with the same idempotency_key. Permissions: live_actions:write, subscribers:read, automations:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
automation_id *stringThe Automation identifier.
body *objectThe exact JSON request body defined by the Mailrith public API contract.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

automations_update_status Change an automation status

Starts, pauses, or returns one Automation to draft without changing its definition. Effect: external-email. Retry after reading the current resource state. Permissions: live_actions:write, automations:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
automation_id *stringThe Automation identifier.
body *objectThe exact JSON request body defined by the Mailrith public API contract.

email_templates_list List email templates

Returns reusable email templates linked to the authenticated workspace. Permission: email_templates:read. Pagination: use bounded pages and returned cursors. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
limitintegerMaximum number of items to return.
searchstringFilter email templates by name.
starting_afterstringOpaque cursor returned by the previous page.

email_templates_create Create an email template

Creates a reusable email template scoped to the authenticated workspace. Effect: workspace-change. Retry with the same idempotency_key. Permission: email_templates:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
idempotency_keystringOptional idempotency key to retry the request safely. It must not exceed 256 UTF-8 bytes.

email_templates_get Get an email template

Returns a reusable email template linked to the authenticated workspace. Permission: email_templates:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
template_id *stringThe email template identifier.

email_templates_preview Preview an email template for a Subscriber

Renders one template using a saved Subscriber's name, email, and custom fields without sending or saving anything. Permissions: subscribers:read, email_templates:read. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
template_id *stringThe email template identifier.

email_templates_update Update an email template

Updates the content or enabled state of an existing email template. Effect: workspace-change. Retry after reading the current resource state. Permission: email_templates:write. API reference: https://mailrith.com/developers/api-reference.

ParameterTypeDescription
body *objectThe exact JSON request body defined by the Mailrith public API contract.
template_id *stringThe email template identifier.