Testing The API

Use a test Workspace and scoped credentials to check your integration before connecting real Subscriber data. Start with read requests, then test writes with an address you control.

7 min read

Prepare A Test Workspace

Use a separate Workspace with controlled test data. Before writing data, confirm it has no active Automations or Sequences that could send email in response to your test.

Mailrith’s public API is at https://api.mailrith.com/v1. API calls act on the Workspace authorized by your credential; a test Workspace still uses the live API.

  1. In Mailrith, switch to your test Workspace. Open Settings → API Keys and click Generate API Key.
  2. Name the key for your test, choose only the Permissions you need, set an expiration, and click Generate. Store the secret on your server.
  3. Call GET /v1/capabilities to confirm the Workspace and Permissions before making changes.
  4. Start with a read request. If you need to test writes, create an Unconfirmed Subscriber using an address you control. Do not enroll it in a Sequence or send a campaign.
  5. Read the saved record and compare it with your request. Check validation, missing-permission, and duplicate behavior before running a larger sync.
  6. Delete your test data and revoke the test key when you finish.
Read Your Capabilities
curl https://api.mailrith.com/v1/capabilities -H "Authorization: Bearer $MAILRITH_API_KEY"

A timeout does not prove a write failed. Read the current state before retrying. See Idempotency for supported retry keys and Errors for error handling.

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

On this page

Jump to the section you need.