Subscribers API

The subscribers resource is the core write surface in `v1`. Use it to sync contacts into a workspace and keep external systems aligned with Mailrith audience state.

4 min read

Sync subscribers

The subscribers surface gives you the two primitives most integrations need first: list the current workspace audience and create or upsert by email.

Upserts are stable for form submissions, CRM syncs, and migration scripts where the caller may see the same contact more than once.

Endpoints

List subscribers for read-side syncs, then use POST /v1/subscribers to create or update a contact, attach existing tags, create new tags, and store custom-field values in one request.

GET /v1/subscribers

List subscribers

Returns subscribers in the authenticated workspace, ordered from newest to oldest.

View schema
POST /v1/subscribers

Create or upsert a subscriber

Creates a new subscriber when the email does not exist in the workspace. If the email already exists, the existing subscriber is updated instead.

View schema

Upsert request shape

Use snake_case field names on the public surface. The request supports both existing tag ids and new tag names so external callers can avoid a preflight create-tag step when needed.

Upsert example
curl -X POST https://api.mailrith.com/v1/subscribers \
  -H "Authorization: Bearer mrk_example_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ada@example.com",
    "name": "Ada Lovelace",
    "status": "Active",
    "new_tags": ["Website Signup"],
    "custom_fields": {
      "company": "Analytical Engines"
    }
  }'

Need help shipping an integration?

Reach the Mailrith team if you need help planning a sync, validating a webhook flow, or troubleshooting a request.

Contact Mailrith

Related guides

On this page

Jump to the section you need.