MailCraft API Reference

REST API for sending, contacts, campaigns, and automation — built for programmatic access alongside the MailCraft dashboard.

Overview

Every endpoint is versioned: all paths below are relative to:

https://<your-mailcraft-domain>/api/v1

Replace <your-mailcraft-domain> with wherever this instance is deployed.

Authentication

API requests are authenticated with a Bearer API key:

Authorization: Bearer mc_live_<your_api_key>

Generate a key from the dashboard under Organization Settings → API Keys. The full key is shown exactly once at creation time — store it somewhere safe, it cannot be retrieved again. A revoked or unknown key returns 401.

Endpoints marked dashboard only below are used by MailCraft's own web app and are not currently reachable with an API key — you'll need to use the dashboard UI for those.

A few endpoints are public and unauthenticated by design (signup-form submission, the public preference-center page, tracking pixels, and provider inbound webhooks) — each is verified by its own narrow mechanism (an embed/preference token, or an HMAC signature) instead of an API key.

Errors & pagination

Errors use a consistent shape, with the matching 4xx/5xx HTTP status:

{
  "error": {
    "code": "validation_error",
    "message": "Human-readable description of what went wrong"
  }
}

List endpoints that support pagination use a forward-only cursor:

GET /api/v1/contacts?limit=20&after=<id>

Responses are shaped { "data": [...], "hasMore": true }. Passing before for backward pagination is rejected with 400 — only forward paging is supported. Where a limit is optional and omitted, most list endpoints return everything in one response (an explicit exception is called out per-endpoint below, e.g. API Request Logs).

Contacts

EndpointDescription
GET/contacts
List contacts. Filter by tagId or listId; paginated.
VerifiedGET response example
{
  "items": [
    {
      "id": "4b128b39-6396-4fd2-b353-877ac2a397b9",
      "email": "jane@example.com",
      "phoneNumber": "+15550000001",
      "firstName": "Jane",
      "lastName": "Doe",
      "emailOptIn": false,
      "smsOptIn": false,
      "timezone": "UTC",
      "status": 0,
      "customFields": { "loyalty_tier": "gold" },
      "createdAt": "2026-11-02T10:19:58.364201Z",
      "updatedAt": "2026-11-02T10:19:58.364201Z"
    }
  ],
  "nextCursor": null
}
POST/contacts
Create a contact. Accepts email, phoneNumber, firstName, lastName, custom fields, and optional listIds/tagIds/ topicSubscriptions to wire it up in the same call.
VerifiedPOST response example
{
  "id": "4b128b39-6396-4fd2-b353-877ac2a397b9",
  "email": "jane@example.com",
  "phoneNumber": "+15550000001",
  "firstName": "Jane",
  "lastName": "Doe",
  "emailOptIn": false,
  "smsOptIn": false,
  "timezone": "UTC",
  "status": 0,
  "customFields": { "loyalty_tier": "gold" },
  "createdAt": "2026-11-02T10:19:58.3642014Z",
  "updatedAt": "2026-11-02T10:19:58.3642014Z"
}
GET/contacts/{id|email}
Get a contact by id or email address.
VerifiedGET response example
{
  "id": "4b128b39-6396-4fd2-b353-877ac2a397b9",
  "email": "jane@example.com",
  "phoneNumber": "+15550000001",
  "firstName": "Jane",
  "lastName": "Doe",
  "emailOptIn": false,
  "smsOptIn": false,
  "timezone": "UTC",
  "status": 0,
  "customFields": { "loyalty_tier": "gold" },
  "createdAt": "2026-11-02T10:19:58.364201Z",
  "updatedAt": "2026-11-02T10:19:58.364201Z"
}
PUT/contacts/{id}
Full replace — every field required, omitted fields are overwritten.
VerifiedPUT response example
{
  "id": "e14362ae-0007-4914-aefe-3b409d6dbc5d",
  "email": "jane3@example.com",
  "phoneNumber": "+15550000003",
  "firstName": "Jane-put",
  "lastName": "Put",
  "emailOptIn": false,
  "smsOptIn": false,
  "timezone": "UTC",
  "status": 0,
  "customFields": { "note": "put", "loyalty_tier": "gold" },
  "createdAt": "2026-11-02T10:19:58.779268Z",
  "updatedAt": "2026-11-02T10:20:25.1467684Z"
}
PATCH/contacts/{id|email}
Partial update. Only firstName/lastName/unsubscribed/ customFields are patchable; omitted fields are left unchanged.
VerifiedPATCH response example
{
  "id": "81182e26-eaa1-42cf-a4fa-811188e30862",
  "email": "jane2@example.com",
  "phoneNumber": null,
  "firstName": "Jane-patched",
  "lastName": "Patched",
  "emailOptIn": true,
  "smsOptIn": true,
  "timezone": "UTC",
  "status": 0,
  "customFields": { "loyalty_tier": "silver", "note": "x" },
  "createdAt": "2026-11-02T10:19:58.67595Z",
  "updatedAt": "2026-11-02T10:20:22.9892581Z"
}
DELETE/contacts/{id|email}
Delete a contact.
VerifiedDELETE response example

204 — empty body.

POST/contacts/{id|email}/lists/{listId}
Add one contact to one list (idempotent).
VerifiedPOST response example
{
  "contactId": "81182e26-eaa1-42cf-a4fa-811188e30862",
  "listId": "43fe75c6-aeb3-4a95-b10c-207a0b97b5ed"
}
GET/contacts/{id|email}/lists
List every list this contact belongs to.
VerifiedGET response example
[
  {
    "id": "43fe75c6-aeb3-4a95-b10c-207a0b97b5ed",
    "name": "vip-customers",
    "description": "VIP customer list",
    "createdAt": "2026-11-02T10:19:53.716319Z"
  }
]
DELETE/contacts/{id|email}/lists/{listId}
Remove a contact from a list (idempotent).
VerifiedDELETE response example

204 — empty body.

GET/contacts/{id|email}/topics
Get a contact's subscription state for every preference topic.
VerifiedGET response example
[
  {
    "topicId": "ea54ae2d-1db8-44ea-abc6-3df8b26c0f20",
    "name": "Product Updates",
    "description": "Occasional news about new features",
    "isSubscribed": true
  }
]
PATCH/contacts/{id|email}/topics
Update subscription state for one or more topics. Body: { "<topicId>": true }.
VerifiedPATCH response example
[
  {
    "topicId": "ea54ae2d-1db8-44ea-abc6-3df8b26c0f20",
    "name": "Product Updates",
    "description": "Occasional news about new features",
    "isSubscribed": false
  }
]
POST/contacts/import-json
Bulk-create/update up to 1000 contacts per call. Query: onConflict=upsert|skip, listIds, tagIds, topicSubscriptions (applied to every row).
VerifiedPOST response example
{
  "id": "78d485fa-3eff-4225-a333-782f9200d637",
  "organizationId": "00000000-0000-0000-0000-00000000a001",
  "fileName": null,
  "status": 1,
  "totalRows": 2,
  "successCount": 2,
  "createdCount": 2,
  "updatedCount": 0,
  "failureCount": 0,
  "errors": [],
  "createdAt": "2026-11-02T10:20:45.5370189Z",
  "completedAt": "2026-11-02T10:20:45.5465009Z"
}
GET/contacts/import/{jobId}
Get an import job's status: createdCount/updatedCount/failureCount/errors.
VerifiedGET response example
{
  "id": "78d485fa-3eff-4225-a333-782f9200d637",
  "organizationId": "00000000-0000-0000-0000-00000000a001",
  "fileName": null,
  "status": 1,
  "totalRows": 2,
  "successCount": 2,
  "createdCount": 2,
  "updatedCount": 0,
  "failureCount": 0,
  "errors": [],
  "createdAt": "2026-11-02T10:20:45.5370189Z",
  "completedAt": "2026-11-02T10:20:45.5465009Z"
}
GET/contacts/import
List import jobs run since the server process last started.
VerifiedGET response example
[
  {
    "id": "c2ac23e7-556b-4215-b5a9-027186ddd7f3",
    "organizationId": "00000000-0000-0000-0000-00000000a001",
    "fileName": null,
    "status": 2,
    "totalRows": 2,
    "successCount": 0,
    "createdCount": 0,
    "updatedCount": 0,
    "failureCount": 2,
    "errors": [
      { "rowNumber": 1, "message": "A contact with this email already exists." },
      { "rowNumber": 2, "message": "Either an email address or a phone number is required." }
    ],
    "createdAt": "2026-11-02T10:20:47.777472Z",
    "completedAt": "2026-11-02T10:20:47.7788826Z"
  }
]
GET/contacts/{id}/timeline
A merged, conversation-grouped timeline of sends, opens/clicks, and inbound replies for one contact.
VerifiedGET response example
[]
GET/contacts/{id}/recommendations
Co-purchase/same-category product recommendations for one contact (requires a connected store).
ExpectedGET response example
[
  {
    "productId": "prod_123",
    "title": "Wireless Headphones",
    "price": 59.99,
    "currency": "USD",
    "imageUrl": "https://store.example.com/img/headphones.jpg",
    "reason": "co_purchased"
  }
]

Requires a connected Shopify/WooCommerce store. Field names are not documented anywhere in docs/API.md — this is a best-effort guess at the shape, not a confirmed contract.

Example — create a contact

curl https://<your-domain>/api/v1/contacts \
  -H "Authorization: Bearer mc_live_xxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "jane@example.com",
    "firstName": "Jane",
    "listIds": ["<list-id>"]
  }'

Lists & tags

EndpointDescription
GETPOST/lists
List / create.
VerifiedGET response example
[
  {
    "id": "1f5271b8-0000-4000-8000-000000000001",
    "name": "newsletter-subscribers",
    "description": null,
    "createdAt": "2026-07-26T05:22:27.813657Z"
  },
  {
    "id": "15afccf3-0000-4000-8000-000000000002",
    "name": "vip-customers",
    "description": "VIP customer list",
    "createdAt": "2026-09-02T04:54:55.684439Z"
  }
]
VerifiedPOST response example
{
  "id": "b18ec0bb-18f9-4992-b982-9158d9c26af8",
  "name": "new-list",
  "description": null,
  "createdAt": "2026-11-02T11:04:16.406644Z"
}
GETPUTDELETE/lists/{id}
Get / replace / delete a list.
VerifiedGET response example
{
  "id": "815ca0d9-6197-4d22-861e-3eb5460bfc94",
  "name": "new-list",
  "description": "A list",
  "createdAt": "2026-11-02T11:04:17.37356Z"
}
VerifiedPUT response example
{
  "id": "815ca0d9-6197-4d22-861e-3eb5460bfc94",
  "name": "renamed-list",
  "description": "updated description",
  "createdAt": "2026-11-02T11:04:17.37356Z"
}
VerifiedDELETE response example

204 — empty body.

GETPOST/tags
List / create tags. dashboard only
ExpectedGET response example
[
  { "id": "a1b2c3d4-0000-4000-8000-000000000001", "name": "vip", "createdAt": "2026-01-01T00:00:00Z" }
]

Not yet verified against the live API — if your actual response differs, tell us so we can fix this doc.

ExpectedPOST response example
{
  "id": "a1b2c3d4-0000-4000-8000-000000000001",
  "name": "vip",
  "createdAt": "2026-01-01T00:00:00Z"
}

Not yet verified against the live API — if your actual response differs, tell us so we can fix this doc.

Contact properties

Organization-level custom-field schema definitions — register a field's expected type once, and every contact write is validated against it.

EndpointDescription
GETPOST/org/contact-properties
List / create a property definition: { key, type: "string"|"number", fallbackValue? }.
VerifiedGET response example
[
  {
    "id": "7d9f5ed2-27da-4ad3-b5a8-1d4a9d9fa9d7",
    "key": "loyalty_tier",
    "type": 0,
    "fallbackValue": null,
    "createdAt": "2026-11-02T11:41:55.374171Z"
  }
]
VerifiedPOST response example
{
  "id": "85de483a-1fbb-48f8-a812-4dfd6d00c36a",
  "key": "loyalty_tier",
  "type": 0,
  "fallbackValue": "n/a",
  "createdAt": "2026-11-02T11:41:37.4800568Z"
}
GETPATCHDELETE/org/contact-properties/{id}
Get / update fallbackValue (only) / delete. key/type are locked after creation.
VerifiedGET response example
{
  "id": "85de483a-1fbb-48f8-a812-4dfd6d00c36a",
  "key": "loyalty_tier",
  "type": 0,
  "fallbackValue": "n/a",
  "createdAt": "2026-11-02T11:41:37.480056Z"
}
VerifiedPATCH response example
{
  "id": "85de483a-1fbb-48f8-a812-4dfd6d00c36a",
  "key": "loyalty_tier",
  "type": 0,
  "fallbackValue": "changed",
  "createdAt": "2026-11-02T11:41:37.480056Z"
}
VerifiedDELETE response example

204 — empty body.

Templates

EndpointDescription
GET/templates
List starter + your own templates. Filter with ?category=.
VerifiedGET response example
[
  {
    "id": "2e816674-fd76-4efe-bb47-d4a5a1d3fe75",
    "name": "Newsletter Template",
    "category": "Newsletter",
    "content": "{...GrapesJS project JSON...}",
    "htmlContent": "<!doctype html><html><body><p>Hello {{FIRST_NAME}}</p></body></html>",
    "isStarterTemplate": false,
    "isOwnedByCurrentOrganization": true,
    "alias": null,
    "from": null,
    "subject": null,
    "replyTo": null,
    "text": null,
    "isPublished": false,
    "status": "draft",
    "variables": [],
    "createdAt": "2026-07-26T05:19:30.316617Z",
    "updatedAt": "2026-09-01T07:54:37.368593Z"
  }
]
POST/templates
Create a template: from/subject/replyTo/html/ text, optional alias and up to 50 typed variables. Created as a draft (isPublished: false).
VerifiedPOST response example
{
  "id": "c9185405-ce17-4217-8ccf-d4f3f4404ce6",
  "name": "Welcome Email",
  "category": "Transactional",
  "content": "{}",
  "htmlContent": "<html><body>Hi {{FIRST_NAME}}, welcome!</body></html>",
  "isStarterTemplate": false,
  "isOwnedByCurrentOrganization": true,
  "alias": "welcome-email",
  "from": "Acme <hello@acme.example.com>",
  "subject": "Welcome!",
  "replyTo": "support@acme.example.com",
  "text": null,
  "isPublished": false,
  "status": "draft",
  "variables": [
    { "key": "FIRST_NAME", "type": 0, "fallbackValue": "there" }
  ],
  "createdAt": "2026-11-02T13:10:58.7343409Z",
  "updatedAt": "2026-11-02T13:10:58.7343409Z"
}
GETPUTPATCHDELETE/templates/{id|alias}
Get / replace / partial-update / delete. A starter template (no Organization owner) can't be mutated — duplicate it instead.
VerifiedGET response example
{
  "id": "680abd8f-aaad-4b3f-aec7-efe5460921e2",
  "name": "Welcome Email",
  "category": "Transactional",
  "content": "{}",
  "htmlContent": "<html><body>Hi Jane, welcome!</body></html>",
  "isStarterTemplate": false,
  "isOwnedByCurrentOrganization": true,
  "alias": "welcome-email-v1",
  "from": "Acme <hello@acme.example.com>",
  "subject": "Welcome to Acme!",
  "replyTo": "support@acme.example.com",
  "text": null,
  "isPublished": false,
  "status": "draft",
  "variables": [
    { "key": "FIRST_NAME", "type": 0, "fallbackValue": "there" }
  ],
  "createdAt": "2026-10-07T05:20:45.483246Z",
  "updatedAt": "2026-10-07T05:20:45.483246Z"
}
ExpectedPUT response example
{
  "id": "680abd8f-aaad-4b3f-aec7-efe5460921e2",
  "name": "Welcome Email",
  "category": "Transactional",
  "content": "{}",
  "htmlContent": "<html><body>Hi Jane, welcome!</body></html>",
  "isStarterTemplate": false,
  "isOwnedByCurrentOrganization": true,
  "alias": "welcome-email-v1",
  "from": "Acme <hello@acme.example.com>",
  "subject": "Welcome to Acme!",
  "replyTo": "support@acme.example.com",
  "text": null,
  "isPublished": false,
  "status": "draft",
  "variables": [],
  "createdAt": "2026-10-07T05:20:45.483246Z",
  "updatedAt": "2026-11-15T10:00:00Z"
}

Same resource shape as the verified GET/Create Template responses above — PUT is a full replace, so omitted fields come back cleared/default rather than unchanged.

VerifiedPATCH response example
{
  "id": "2e816674-fd76-4efe-bb47-d4a5a1d3fe75",
  "name": "Newsletter Template",
  "category": "Newsletter",
  "content": "{...GrapesJS project JSON...}",
  "htmlContent": "<!doctype html><html><body><p>Hello {{FIRST_NAME}}</p></body></html>",
  "isStarterTemplate": false,
  "isOwnedByCurrentOrganization": true,
  "alias": null,
  "from": null,
  "subject": "Patched subject",
  "replyTo": null,
  "text": null,
  "isPublished": false,
  "status": "draft",
  "variables": [],
  "createdAt": "2026-07-26T05:19:30.316617Z",
  "updatedAt": "2026-11-02T13:04:55.4999124Z"
}
VerifiedDELETE response example

204 — empty body.

POST/templates/{id|alias}/publish
Marks a template published. Idempotent.
VerifiedPOST response example
{
  "id": "2e816674-fd76-4efe-bb47-d4a5a1d3fe75",
  "name": "Newsletter Template",
  "category": "Newsletter",
  "content": "{...GrapesJS project JSON...}",
  "htmlContent": "<!doctype html><html><body><p>Hello {{FIRST_NAME}}</p></body></html>",
  "isStarterTemplate": false,
  "isOwnedByCurrentOrganization": true,
  "alias": null,
  "from": null,
  "subject": "Patched subject",
  "replyTo": null,
  "text": null,
  "isPublished": true,
  "status": "published",
  "variables": [],
  "createdAt": "2026-07-26T05:19:30.316617Z",
  "updatedAt": "2026-11-02T13:07:16.1419305Z"
}
POST/templates/{id|alias}/duplicate
Copies a template's content (including variables) into a new, unpublished template.
VerifiedPOST response example
{
  "id": "12094198-79b4-43a5-ada7-b28fbc54e29d",
  "name": "Newsletter Template (Copy)",
  "category": "Newsletter",
  "content": "{...GrapesJS project JSON...}",
  "htmlContent": "<!doctype html><html><body><p>Hello {{FIRST_NAME}}</p></body></html>",
  "isStarterTemplate": false,
  "isOwnedByCurrentOrganization": true,
  "alias": null,
  "from": null,
  "subject": "Patched subject",
  "replyTo": null,
  "text": null,
  "isPublished": false,
  "status": "draft",
  "variables": [],
  "createdAt": "2026-11-02T13:07:45.2490277Z",
  "updatedAt": "2026-11-02T13:07:45.2490277Z"
}

Campaigns

EndpointDescription
GET/campaigns
List campaigns.
ExpectedGET response example
[
  {
    "id": "c1000000-0000-4000-8000-000000000001",
    "name": "October Newsletter",
    "channel": "Email",
    "purpose": "Marketing",
    "status": "Draft",
    "approvalStatus": null,
    "topicId": null,
    "scheduledSendAt": null,
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }
]

Field names are our best guess, grounded in docs/API.md's Campaign text (purpose, channel, status, approvalStatus, topicId, scheduledSendAt are each named there) — not a confirmed full contract.

POST/campaigns
Create. Body includes purpose: "Marketing"|"Transactional" (locked after creation) and optional topicId to restrict recipients to a preference topic's subscribers.
ExpectedPOST response example
{
  "id": "c1000000-0000-4000-8000-000000000001",
  "name": "October Newsletter",
  "channel": "Email",
  "purpose": "Marketing",
  "status": "Draft",
  "approvalStatus": null,
  "topicId": null,
  "scheduledSendAt": null,
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Same caveat as List Campaigns — constructed from field names mentioned in docs/API.md, not a captured response.

GETPUTDELETE/campaigns/{id}
Get / replace / delete.
ExpectedGET response example
{
  "id": "c1000000-0000-4000-8000-000000000001",
  "name": "October Newsletter",
  "channel": "Email",
  "purpose": "Marketing",
  "status": "Draft",
  "approvalStatus": null,
  "topicId": null,
  "scheduledSendAt": null,
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Not yet verified against the live API — if your actual response differs, tell us so we can fix this doc.

ExpectedPUT response example
{
  "id": "c1000000-0000-4000-8000-000000000001",
  "name": "October Newsletter",
  "channel": "Email",
  "purpose": "Marketing",
  "status": "Draft",
  "approvalStatus": null,
  "topicId": null,
  "scheduledSendAt": null,
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Full replace — expect omitted fields to reset, same pattern as Templates' PUT.

ExpectedDELETE response example
{ "id": "c1000000-0000-4000-8000-000000000001", "deleted": true }

This codebase's own established delete-response shape (seen verbatim in docs/API.md for Webhooks/Threads/Suppression deletes) — reused here by convention, not individually confirmed for Campaigns.

POST/campaigns/{id}/schedule
Schedules a future send.
ExpectedPOST response example
{
  "id": "c1000000-0000-4000-8000-000000000001",
  "name": "October Newsletter",
  "channel": "Email",
  "purpose": "Marketing",
  "status": "Draft",
  "approvalStatus": null,
  "topicId": null,
  "scheduledSendAt": null,
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Expect `status: "Scheduled"` and `scheduledSendAt` set; exact response body not documented.

POST/campaigns/{id}/send-now
Enqueues an immediate send.
ExpectedPOST response example
{
  "id": "c1000000-0000-4000-8000-000000000001",
  "name": "October Newsletter",
  "channel": "Email",
  "purpose": "Marketing",
  "status": "Draft",
  "approvalStatus": null,
  "topicId": null,
  "scheduledSendAt": null,
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Expect `status: "Sending"`; exact response body not documented.

POST/campaigns/{id}/cancel
Cancels a Scheduled or in-progress Sending campaign; already-sent emails are unaffected.
ExpectedPOST response example
{
  "id": "c1000000-0000-4000-8000-000000000001",
  "name": "October Newsletter",
  "channel": "Email",
  "purpose": "Marketing",
  "status": "Draft",
  "approvalStatus": null,
  "topicId": null,
  "scheduledSendAt": null,
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Expect `status` reverted to `"Draft"` (if cancelled from Scheduled) or moved to `"Cancelled"` (if cancelled from Sending) — both states are named in docs/API.md; exact response body not documented.

GET/campaigns/{id}/report
Send/open/click/bounce/revenue summary.
ExpectedGET response example
{
  "campaignId": "c1000000-0000-4000-8000-000000000001",
  "sent": 1000,
  "delivered": 980,
  "opened": 410,
  "uniqueOpened": 360,
  "clicked": 120,
  "uniqueClicked": 95,
  "bounced": 20,
  "complained": 1,
  "unsubscribed": 3,
  "revenue": 452.10
}

Field names follow the same pattern as the confirmed Analytics `GET /analytics/metrics` shape and docs/API.md's own wording ("send/open/click/bounce/revenue-attribution summary") — not individually confirmed for this specific endpoint.

Broadcasts

A simpler, template+audience shaped wrapper over Campaigns — create and optionally send in one call.

EndpointDescription
GET/broadcasts
List broadcasts.
ExpectedGET response example
[
  {
    "id": "b1000000-0000-4000-8000-000000000001",
    "name": "October Newsletter",
    "status": "Draft",
    "audienceId": "l1000000-0000-4000-8000-000000000001",
    "topicId": null,
    "from": "Acme <hello@acme.example.com>",
    "subject": "October Newsletter",
    "replyTo": "support@acme.example.com",
    "html": "<html>...</html>",
    "text": null,
    "scheduledAt": null,
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }
]

Fields are the exact list docs/API.md gives for the Broadcast response shape (id, name, status, audienceId, topicId, from, subject, replyTo, html, text, scheduledAt, timestamps) — this is grounded, but the array-of-this-shape wrapper for List specifically isn't shown verbatim anywhere.

POST/broadcasts
Create: { name, from, subject, html, text, segmentId, topicId?, send?, scheduledAt? }. send: true dispatches immediately in the same call.
ExpectedPOST response example
{
    "id": "b1000000-0000-4000-8000-000000000001",
    "name": "October Newsletter",
    "status": "Draft",
    "audienceId": "l1000000-0000-4000-8000-000000000001",
    "topicId": null,
    "from": "Acme <hello@acme.example.com>",
    "subject": "October Newsletter",
    "replyTo": "support@acme.example.com",
    "html": "<html>...</html>",
    "text": null,
    "scheduledAt": null,
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }

This exact shape — id, name, status, audienceId, topicId, from, subject, replyTo, html, text, scheduledAt, timestamps — is stated directly in docs/API.md for Create Broadcast's response.

GET/broadcasts/{id}
Get one broadcast.
ExpectedGET response example
{
    "id": "b1000000-0000-4000-8000-000000000001",
    "name": "October Newsletter",
    "status": "Draft",
    "audienceId": "l1000000-0000-4000-8000-000000000001",
    "topicId": null,
    "from": "Acme <hello@acme.example.com>",
    "subject": "October Newsletter",
    "replyTo": "support@acme.example.com",
    "html": "<html>...</html>",
    "text": null,
    "scheduledAt": null,
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }

Same shape docs/API.md names for Get Broadcast (ADR-056), except `previewText` is explicitly never returned.

PATCH/broadcasts/{id}
Partial update (rejected once sending/sent).
ExpectedPATCH response example
{
    "id": "b1000000-0000-4000-8000-000000000001",
    "name": "October Newsletter",
    "status": "Draft",
    "audienceId": "l1000000-0000-4000-8000-000000000001",
    "topicId": null,
    "from": "Acme <hello@acme.example.com>",
    "subject": "October Newsletter",
    "replyTo": "support@acme.example.com",
    "html": "<html>...</html>",
    "text": null,
    "scheduledAt": null,
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }

Assumed to return the updated broadcast in the same shape as Get/Create; not independently confirmed.

POST/broadcasts/{id}/send
Send now, or at scheduledAt.
ExpectedPOST response example
{
    "id": "b1000000-0000-4000-8000-000000000001",
    "name": "October Newsletter",
    "status": "Draft",
    "audienceId": "l1000000-0000-4000-8000-000000000001",
    "topicId": null,
    "from": "Acme <hello@acme.example.com>",
    "subject": "October Newsletter",
    "replyTo": "support@acme.example.com",
    "html": "<html>...</html>",
    "text": null,
    "scheduledAt": null,
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }

Expect `status` moved to `"Sending"`/`"Scheduled"`; exact response body not documented.

POST/broadcasts/{id}/cancel
Cancel.
ExpectedPOST response example
{
    "id": "b1000000-0000-4000-8000-000000000001",
    "name": "October Newsletter",
    "status": "Draft",
    "audienceId": "l1000000-0000-4000-8000-000000000001",
    "topicId": null,
    "from": "Acme <hello@acme.example.com>",
    "subject": "October Newsletter",
    "replyTo": "support@acme.example.com",
    "html": "<html>...</html>",
    "text": null,
    "scheduledAt": null,
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }

Thin pass-through to Cancel Campaign per docs/API.md; exact response body not documented.

DELETE/broadcasts/{id}
Delete (not while sending/sent).
ExpectedDELETE response example
{ "id": "b1000000-0000-4000-8000-000000000001", "deleted": true }

This codebase's established delete-response convention, reused by analogy — not individually confirmed for Broadcasts.

POST/broadcasts/{id}/duplicate
Duplicate as a new draft.
ExpectedPOST response example
{
    "id": "b1000000-0000-4000-8000-000000000001",
    "name": "October Newsletter",
    "status": "Draft",
    "audienceId": "l1000000-0000-4000-8000-000000000001",
    "topicId": null,
    "from": "Acme <hello@acme.example.com>",
    "subject": "October Newsletter",
    "replyTo": "support@acme.example.com",
    "html": "<html>...</html>",
    "text": null,
    "scheduledAt": null,
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }

A fresh Draft copy, same shape, per docs/API.md's description of what Duplicate Broadcast copies.

GET/broadcasts/{id}/recipients
Paginated recipients by type (sent/delivered/opened/clicked/bounced/complained/unsubscribed/suppressed).
ExpectedGET response example
{
  "data": [
    { "contactId": "81182e26-eaa1-42cf-a4fa-811188e30862", "email": "jane@example.com", "type": "opened", "occurredAt": "2026-10-02T09:00:00Z" }
  ],
  "hasMore": false
}

The `{ data, hasMore }` envelope and cursor params are confirmed in docs/API.md; the per-recipient row's exact field names are our best guess, not individually confirmed.

GET/broadcasts/{id}/clicked-links
Per-link click counts, most-clicked first.
ExpectedGET response example
{
  "data": [
    { "url": "https://acme.example.com/sale", "clicks": 42, "uniqueClicks": 30 }
  ],
  "hasMore": false
}

`clicks`/`uniqueClicks` and the ordering (descending by clicks) are stated directly in docs/API.md; `url` as the link field name is our best guess.

Automations

EndpointDescription
GET/automations
List. Filter ?status=enabled|disabled.
ExpectedGET response example
[
  {
    "id": "a1000000-0000-4000-8000-000000000001",
    "name": "Welcome Series",
    "status": "Draft",
    "triggerType": "Signup",
    "createdAt": "2026-10-01T00:00:00Z",
    "updatedAt": "2026-10-01T00:00:00Z"
  }
]

`id`/`name`/`status`/`triggerType`/`createdAt`/`updatedAt` are the exact fields docs/API.md names for Get Automation; List's per-row shape is assumed to match, not independently confirmed. `status` values Active/Draft/Paused and `triggerType` values (Signup/DateBased/Purchase/CartAbandoned/Webhook/ApiTrigger) are all named in docs/API.md.

POST/automations
Create — either { name, triggerType } (empty draft) or a full steps[]/connections[] graph. Supported step types: trigger, condition (single rule), delay, send_email.
ExpectedPOST response example
{
  "id": "a1000000-0000-4000-8000-000000000001",
  "name": "Welcome Series",
  "status": "Draft",
  "triggerType": "Signup",
  "nodes": [],
  "edges": [],
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

`nodes`/`edges` as the native graph field names are confirmed in docs/API.md ("the graph stays in Mailcraft's native GUID-keyed nodes/edges shape"); the rest matches Get Automation's documented fields.

GETPUTPATCHDELETE/automations/{id}
Get / replace graph / partial update / delete. A graph change is rejected while the workflow is Active — pause first, or duplicate and edit the copy.
ExpectedGET response example
{
  "id": "a1000000-0000-4000-8000-000000000001",
  "name": "Welcome Series",
  "status": "Draft",
  "triggerType": "Signup",
  "nodes": [],
  "edges": [],
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Exact fields named in docs/API.md for Get Automation.

ExpectedPUT response example
{
  "id": "a1000000-0000-4000-8000-000000000001",
  "name": "Welcome Series",
  "status": "Draft",
  "triggerType": "Signup",
  "nodes": [],
  "edges": [],
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Full graph replace — response shape assumed same as Get.

ExpectedPATCH response example
{
  "id": "a1000000-0000-4000-8000-000000000001",
  "name": "Welcome Series",
  "status": "Draft",
  "triggerType": "Signup",
  "nodes": [],
  "edges": [],
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Partial update — response shape assumed same as Get.

ExpectedDELETE response example
{ "id": "a1000000-0000-4000-8000-000000000001", "deleted": true }

This codebase's established delete-response convention, reused by analogy.

POST/automations/{id}/duplicate
Duplicate as a new draft.
ExpectedPOST response example
{
  "id": "a1000000-0000-4000-8000-000000000001",
  "name": "Welcome Series",
  "status": "Draft",
  "triggerType": "Signup",
  "nodes": [],
  "edges": [],
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

A fresh Draft copy with a new id, per docs/API.md's description.

POST/automations/{id}/activate
Activate.
ExpectedPOST response example
{
  "id": "a1000000-0000-4000-8000-000000000001",
  "name": "Welcome Series",
  "status": "Draft",
  "triggerType": "Signup",
  "nodes": [],
  "edges": [],
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Expect `status: "Active"`; exact response body not documented — may be a minimal ack instead of the full resource.

POST/automations/{id}/pause
Pause (also available as /stop).
ExpectedPOST response example
{
  "id": "a1000000-0000-4000-8000-000000000001",
  "name": "Welcome Series",
  "status": "Draft",
  "triggerType": "Signup",
  "nodes": [],
  "edges": [],
  "createdAt": "2026-10-01T00:00:00Z",
  "updatedAt": "2026-10-01T00:00:00Z"
}

Expect `status: "Paused"`; exact response body not documented.

GET/automations/{id}/runs
List enrollment "runs". Filter ?status=running|completed|failed.
ExpectedGET response example
{
  "data": [
    { "id": "r1000000-0000-4000-8000-000000000001", "status": "running", "startedAt": "2026-10-02T09:00:00Z", "completedAt": null, "createdAt": "2026-10-02T09:00:00Z" }
  ],
  "hasMore": false
}

The `{ id, status, startedAt, completedAt, createdAt }` row shape and the `{ data, hasMore }` envelope are both stated directly in docs/API.md.

GET/automations/{id}/runs/{runId}
Get one run.
ExpectedGET response example
{ "id": "r1000000-0000-4000-8000-000000000001", "status": "completed", "startedAt": "2026-10-02T09:00:00Z", "completedAt": "2026-10-02T09:05:00Z", "createdAt": "2026-10-02T09:00:00Z" }

Exact shape docs/API.md names for Get Run — "same summary shape as a List Runs row". No per-step execution trace is included (deliberately, per docs/API.md).

POST/automations/{id}/trigger
Enrolls a specific contactId into a Webhook/ApiTrigger-type automation — the external-trigger entry point.
ExpectedPOST response example
{ "automationId": "a1000000-0000-4000-8000-000000000001", "contactId": "81182e26-eaa1-42cf-a4fa-811188e30862", "enrolled": true }

Not documented — modeled on this API's own confirmed convention of echoing back the ids involved as a confirmation (see the real `POST /contacts/.../lists/{listId}` response above).

Custom events

Registers a named event definition — a schema, not a firing mechanism. There is currently no endpoint to record an occurrence of an event against a contact.

EndpointDescription
POST/events
Create: { name, schema?: { field: "string"|"number"|"boolean"|"date" } }.
ExpectedPOST response example
{
  "id": "e1000000-0000-4000-8000-000000000001",
  "name": "order_placed",
  "schema": { "orderValue": "number", "currency": "string" },
  "createdAt": "2026-10-01T00:00:00Z"
}

Exact shape stated directly in docs/API.md: `200 OK: the full created resource { id, name, schema, createdAt }`.

GET/events
List.
ExpectedGET response example
{
  "data": [
    { "id": "e1000000-0000-4000-8000-000000000001", "name": "order_placed", "schema": { "orderValue": "number", "currency": "string" }, "createdAt": "2026-10-01T00:00:00Z" }
  ],
  "hasMore": false
}

`{ data, hasMore }` envelope stated directly in docs/API.md; row shape matches Create Event's documented response.

GET/events/{id}
Get one.
ExpectedGET response example
{ "id": "e1000000-0000-4000-8000-000000000001", "name": "order_placed", "schema": { "orderValue": "number", "currency": "string" }, "createdAt": "2026-10-01T00:00:00Z" }

Row shape matches Create Event's documented response; not independently confirmed for this specific route.

Transactional email

One-off sends (password resets, receipts, alerts) through your connected provider — bypasses campaign approval, suppression-list, and opt-in checks.

EndpointDescription
POST/transactional/send
Send one message. channel: "Email"|"Sms"|"WhatsApp", recipient, content fields, optional cc/bcc (Email only), optional future scheduledAt, optional attachments (up to 10, 10MB each). Returns 202 with { sendId }.
VerifiedPOST response example
{
  "sendId": "380db801-6d05-4866-b3ca-defbd2e2a05a"
}
POST/transactional/send/batch
Up to 100 independently-addressed sends in one call. Partial success — each item gets its own { sendId } or { error } at its original index.
VerifiedPOST response example
[
  { "sendId": "a016646d-7a6a-47a6-8177-649c05c19f8d", "error": null },
  { "sendId": null, "error": "Body is required." }
]
GET/transactional
List your transactional sends, newest first. Cursor-paginated.
VerifiedGET response example
{
  "items": [
    {
      "sendId": "2d9aa41e-f341-495e-96d6-dd4ad81b85d6",
      "status": "Sent",
      "failureReason": null,
      "recipient": "jane@example.com",
      "channel": "Email",
      "messageId": "<010001a19fa168a2-...-000000@email.amazonses.com>",
      "createdAt": "2026-11-03T04:22:30.1Z",
      "updatedAt": "2026-11-03T04:22:34.9Z",
      "attachments": null
    }
  ],
  "nextCursor": "MjAyNi0xMS0wM1QwNDoyMjozMC4wMDAwMDAwWnxhMDE2NjQ2ZC03YTZhLTQ3YTYtODY0OS1jMDVjOTljMTlmOGQ="
}
GET/transactional/{sendId}
Poll a send's current status: Scheduled|Queued|Sent|Delivered|Failed|Bounced|Cancelled.
VerifiedGET response example
{
  "sendId": "ca073307-af67-4081-a061-70b9e08cdff1",
  "status": "Sent",
  "failureReason": null,
  "recipient": "jane@example.com",
  "channel": "Email",
  "messageId": "<010001a19fa168a2-...-000000@email.amazonses.com>",
  "createdAt": "2026-11-03T04:18:34.616596Z",
  "updatedAt": "2026-11-03T04:18:38.084755Z",
  "attachments": null
}
PATCH/transactional/{sendId}
Reschedule a still-pending scheduled send's scheduledAt.
VerifiedPATCH response example

204 — empty body.

POST/transactional/{sendId}/cancel
Cancel a still-pending scheduled send.
VerifiedPOST response example

204 — empty body.

POST/transactional/{sendId}/share
Create a public, time-limited share link for a sent email's rendered content.
VerifiedPOST response example
{
  "url": "https://<your-domain>/api/v1/public/shared-emails/a0a971c1ef26...(64-char token)",
  "expiresAt": "2026-11-03T05:22:09.7923335Z"
}

Example — send and poll

curl https://<your-domain>/api/v1/transactional/send \
  -H "Authorization: Bearer mc_live_xxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "Email",
    "recipient": "jane@example.com",
    "subject": "Your receipt",
    "body": "<p>Thanks for your order!</p>"
  }'

# => 202 Accepted { "sendId": "..." }

curl https://<your-domain>/api/v1/transactional/<sendId> \
  -H "Authorization: Bearer mc_live_xxxxx"

# => { "sendId": "...", "status": "Delivered", "channel": "Email", ... }

Bulk email

EndpointDescription
POST/bulk/send
One subject/body sent to up to 1000 recipients at once, no Campaign/List required: { subject, body, recipients: string[] }.
ExpectedPOST response example
{ "sendId": "f1000000-0000-4000-8000-000000000001" }

Not documented anywhere in docs/API.md — this guess follows Transactional Send's confirmed `{ sendId }` async-dispatch pattern, but Bulk Send addresses many recipients at once, so the real shape may differ (e.g. one id per recipient). Treat this as the lowest-confidence guess on this whole page.

Attachments

Attachments are supplied Base64-encoded on POST /transactional/send and retrieved afterward via fresh, time-limited signed URLs.

EndpointDescription
GET/transactional/{sendId}/attachments
List a send's attachments, each with a fresh 1-hour download URL.
VerifiedGET response example
[
  {
    "id": "1bd0925c-4cee-417e-b4f1-62c76c74bbd7",
    "filename": "invoice.pdf",
    "contentType": "application/pdf",
    "sizeBytes": 395,
    "downloadUrl": "https://<your-domain>/api/v1/public/attachments/8b68df6f7106f85e...(1-hour signed token)",
    "expiresAt": "2026-11-03T05:20:07.7667812Z"
  },
  {
    "id": "83273d94-9091-4f2f-ac68-0ea791ae7940",
    "filename": "notes.txt",
    "contentType": "text/plain",
    "sizeBytes": 60,
    "downloadUrl": "https://<your-domain>/api/v1/public/attachments/8e69f19754828d55...(1-hour signed token)",
    "expiresAt": "2026-11-03T05:20:07.7667812Z"
  }
]
GET/transactional/{sendId}/attachments/{attachmentId}
Get one attachment's metadata and a fresh download URL.
VerifiedGET response example
{
  "id": "83273d94-9091-4f2f-ac68-0ea791ae7940",
  "filename": "notes.txt",
  "contentType": "text/plain",
  "sizeBytes": 60,
  "downloadUrl": "https://<your-domain>/api/v1/public/attachments/a19e2c6cf0b9c9df...(1-hour signed token)",
  "expiresAt": "2026-11-03T05:20:07.7667812Z"
}

Inbound email

Email replies received on a provisioned inbox (not a general-purpose receive-anything mailbox).

EndpointDescription
GET/inbound
List the most recently received emails, newest first (default 20, max 100).
VerifiedGET response example
[
  {
    "id": "11111111-1111-4111-8111-111111111111",
    "from": "jane@example.com",
    "subject": "Re: Welcome",
    "body": "Thanks, got it!\n\nOn Mon, Oct 12, 2026 at 6:14 PM Acme <crm@example.org> wrote:\n\n> Welcome aboard\n",
    "receivedAt": "2026-10-12T12:14:56.121104Z",
    "conversationId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
    "attachments": null
  }
]
GET/inbound/{id}
Get one received email: { id, from, subject, body, receivedAt, conversationId }.
VerifiedGET response example
{
  "id": "11111111-1111-4111-8111-111111111111",
  "from": "jane@example.com",
  "subject": "Re: Welcome",
  "body": "Thanks, got it!\n\nOn Mon, Oct 12, 2026 at 6:14 PM Acme <crm@example.org> wrote:\n\n> Welcome aboard\n",
  "receivedAt": "2026-10-12T12:14:56.121104Z",
  "conversationId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
  "attachments": []
}
POST/inbound/{id}/reply
Reply to a received email through your connected provider: { subject, body }. Returns 202 with a pollable sendId, same as Transactional Send.
ExpectedPOST response example
{ "sendId": "380db801-6d05-4866-b3ca-defbd2e2a05a" }

Exact shape stated directly in docs/API.md: "Dispatches through the exact same async pipeline as POST /api/v1/transactional/send — 202 Accepted { sendId }" (confirmed for Transactional Send itself, above).

Webhooks

Subscribe to outbound event notifications instead of polling.

EndpointDescription
GET/org/webhook-subscriptions
List.
ExpectedGET response example
{
  "data": [
    { "id": "w1000000-0000-4000-8000-000000000001", "endpoint": "https://your-app.example.com/webhooks/mailcraft", "events": ["email.bounced", "Unsubscribe"], "status": "enabled", "createdAt": "2026-10-01T00:00:00Z" }
  ],
  "hasMore": false
}

Exact shape stated directly in docs/API.md: `200 OK: { data: [{ id, endpoint, events, status, createdAt }], hasMore }`.

GET/org/webhook-subscriptions/{id}
Get one.
ExpectedGET response example
{ "id": "w1000000-0000-4000-8000-000000000001", "endpoint": "https://your-app.example.com/webhooks/mailcraft", "events": ["email.bounced", "Unsubscribe"], "status": "enabled", "createdAt": "2026-10-01T00:00:00Z" }

Same per-row shape as List Webhooks, stated directly in docs/API.md.

POST/org/webhook-subscriptions
Create: { endpoint, events: string[] }. Returns a signingSecret shown exactly once.
ExpectedPOST response example
{
  "id": "w1000000-0000-4000-8000-000000000001",
  "endpoint": "https://your-app.example.com/webhooks/mailcraft",
  "events": ["email.bounced", "Unsubscribe"],
  "status": "enabled",
  "signingSecret": "whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "createdAt": "2026-10-01T00:00:00Z"
}

Exact shape stated directly in docs/API.md, including that `signingSecret` is shown once at creation and never again.

PATCH/org/webhook-subscriptions/{id}
Update endpoint/events/status: "enabled"|"disabled".
ExpectedPATCH response example
{ "id": "w1000000-0000-4000-8000-000000000001", "endpoint": "https://your-app.example.com/webhooks/mailcraft", "events": ["email.bounced", "Unsubscribe"], "status": "disabled", "createdAt": "2026-10-01T00:00:00Z" }

Assumed to return the updated row in the same shape as List/Get, minus `signingSecret` (shown once only, at creation) — not independently confirmed.

DELETE/org/webhook-subscriptions/{id}
Delete.
ExpectedDELETE response example
{ "id": "w1000000-0000-4000-8000-000000000001", "deleted": true }

Exact shape stated directly in docs/API.md: "200 OK: { id, deleted: true } — replaces this endpoint's previous bare 204 No Content".

Event types

email.opened · email.clicked · email.bounced · email.failed · InboundMessageReceived · Unsubscribe · CampaignSent (not yet fired by any current code path)

Verifying a delivery

Every delivery carries two headers:

// Node.js example
const crypto = require('crypto');
const expected = crypto.createHmac('sha256', signingSecret)
  .update(rawRequestBody)
  .digest('base64');
if (expected !== req.headers['x-mailchimp-clone-signature']) {
  return res.status(401).end();
}

Failed deliveries retry with exponential backoff for up to 5 attempts before being marked exhausted — your endpoint should respond quickly and idempotently.

Analytics

EndpointDescription
GET/analytics/metrics
Account-level Email-channel totals and rates over a date range: ?from=&to=. Returns sent/delivered/failed/bounced/opened/clicked/complained/unsubscribed counts and rates.
ExpectedGET response example
{
  "startDate": "2026-10-01",
  "endDate": "2026-10-31",
  "sent": 12000,
  "delivered": 11800,
  "failed": 50,
  "bounced": 150,
  "opened": 4500,
  "uniqueOpened": 3900,
  "clicked": 1200,
  "uniqueClicked": 980,
  "complained": 5,
  "unsubscribed": 40,
  "deliveryRate": 0.9833,
  "openRate": 0.3814,
  "clickRate": 0.1017,
  "bounceRate": 0.0125,
  "complaintRate": 0.0004
}

Exact field list stated directly in docs/API.md (ADR-020) — only the numbers themselves are illustrative.

API request logs

An audit trail of your own API-key-authenticated requests — useful for debugging integrations. Request/response bodies are redacted for sensitive fields before storage and kept for 30 days.

EndpointDescription
GET/logs
List your logged requests, newest first. limit defaults to 20 — unlike most list endpoints here, omitting it does not return everything.
ExpectedGET response example
{
  "data": [
    {
      "id": "l1000000-0000-4000-8000-000000000001",
      "endpoint": "/api/v1/contacts",
      "method": "POST",
      "responseStatus": 200,
      "userAgent": "curl/8.4.0",
      "requestBody": "{\"email\":\"jane@example.com\"}",
      "responseBody": "{\"id\":\"...\"}",
      "createdAt": "2026-10-01T00:00:00Z"
    }
  ],
  "hasMore": false
}

The `{ data, hasMore }` envelope is this codebase's established list convention; the row shape is docs/API.md's exact Get Log shape (confirmed for the single-row endpoint below) — assumed, not confirmed, that List returns the same full shape per row rather than a trimmed summary.

GET/logs/{id}
Get one logged request.
ExpectedGET response example
{
  "id": "l1000000-0000-4000-8000-000000000001",
  "endpoint": "/api/v1/contacts",
  "method": "POST",
  "responseStatus": 200,
  "userAgent": "curl/8.4.0",
  "requestBody": "{\"email\":\"jane@example.com\",\"password\":\"[REDACTED]\"}",
  "responseBody": "{\"id\":\"4b128b39-6396-4fd2-b353-877ac2a397b9\"}",
  "createdAt": "2026-10-01T00:00:00Z"
}

Exact field list stated directly in docs/API.md, including that sensitive JSON keys are redacted before storage.

Dashboard-only features

These exist in MailCraft but aren't currently reachable with an API key — use the web dashboard instead: