Developers
The SendCaravan API
Keys per brand, plain errors, and a send gate that refuses with a reason instead of failing silently.
Authentication
One key per brand
Every request carries Authorization: Bearer sc_<prefix>_<secret>. A key sends only as its own brand. Keys are shown once; we keep only a hash.
Reference
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | /v1/pipeline | Every campaign and journey of the workspace with its pipeline stage (PIPE-01/11) |
GET | /v1/pipeline/{type}/{id} | One item: its stage, approvals and status timeline (PIPE-07/11) |
POST | /v1/ingest/{connector} | A connector’s signed event ingest (no API key). Header SendCaravan-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(connector secret, "<t>.<raw body>")>, within 5 minutes; ClickCaravan connectors use X-CC-Timestamp + X-CC-Signature. The same signed request twice is refused (replayed); a retry with a new signature and the same event id answers duplicate. Body: one event or { events: [up to 100] } (VintnerPro and Shopify / WooCommerce-style connectors take their own payloads). |
POST | /v1/events | Send events with the workspace’s API key (same contract as the connector ingest): custom events start journeys with trigger custom:<name>; commerce events record orders for revenue attribution |
GET | /v1/journeys | List journeys (not archived) |
GET | /v1/journeys/{id} | One journey with its draft and report (entered, active, completed, goal, exited, per step, revenue) |
POST | /v1/journeys/{id}/pause | Pause a live journey: everyone in it waits where they are |
POST | /v1/journeys/{id}/resume | Resume a paused journey |
GET | /v1/audiences | List audiences with member counts per status |
POST | /v1/audiences | Create an audience (double opt-in on by default) |
GET | /v1/contacts | List contacts (search, audience + status, tag) |
POST | /v1/contacts | Add or update one contact (unique per workspace by email); subscribing needs consent_source |
GET | /v1/contacts/{id} | One contact with memberships, consent ledger and timeline |
PATCH | /v1/contacts/{id} | Update a contact’s fields, tags, interests, time zone, ship-to state |
POST | /v1/contacts/{id}/status | Set the status in one audience (subscribed needs consent_source) |
GET | /v1/contacts/{id}/export | MKT-13: everything held about this person (JSON) |
POST | /v1/contacts/{id}/erase | MKT-13: erase this person (hashed consent proof and opt-outs are kept) |
POST | /v1/segments/count | Live count of an audience’s subscribed contacts matching nested AND/OR rules |
POST | /v1/imports | Import contacts (CSV text or Mailchimp exports) with a required consent source; hygiene, risk score, 24 h undo |
GET | /v1/imports/{id} | One import with its stats |
POST | /v1/imports/{id}/undo | Undo an import inside its window (opt-outs stay) |
GET | /v1/campaigns | List campaigns |
POST | /v1/campaigns | Create a campaign (any editable field may be given too) |
GET | /v1/campaigns/{id} | One campaign |
PATCH | /v1/campaigns/{id} | Edit a draft: audience, segment or rules, from, subject, editor + doc/html/text, UTM, tracking, A/B, schedule |
POST | /v1/campaigns/{id}/preview | The exact recipient count, exclusions with reasons, pre-send checks and the confirm_hash |
POST | /v1/campaigns/{id}/send | Confirm and send / schedule; refused unless confirm_hash matches the current audience and content |
POST | /v1/campaigns/{id}/pause | Pause: messages not yet handed to SES are pulled back |
POST | /v1/campaigns/{id}/resume | Resume a paused campaign |
POST | /v1/campaigns/{id}/cancel | Cancel: nobody else gets it |
GET | /v1/campaigns/{id}/report | Report: unique/total opens and clicks, bounces, unsubscribes, complaints, links, providers, devices, A/B variants |
POST | /v1/messages | Send one message (queued in its lane) |
GET | /v1/messages | List messages (newest first) |
POST | /v1/messages/batch | Send to up to 1,000 recipients, one message each, with per-recipient substitutions |
GET | /v1/messages/{id} | A message with its events |
PATCH | /v1/scheduled/{batch_id} | Reschedule every not-yet-sent message of a batch (TX-04; at most 72 hours ahead; empty send_at = now) |
DELETE | /v1/scheduled/{batch_id} | Cancel every not-yet-sent message of a batch |
GET | /v1/templates | List templates |
POST | /v1/templates | Create a template (version 1, draft) |
GET | /v1/templates/{ref} | A template with all its versions |
POST | /v1/templates/{ref}/versions | Add a new draft version |
PATCH | /v1/templates/{ref}/versions/{version} | Edit a draft version |
POST | /v1/templates/{ref}/versions/{version}/publish | Make a version active (publish, or roll back to an older one) |
POST | /v1/templates/{ref}/render | Render a version with data or a saved test data set |
GET | /v1/partials | List partials |
PUT | /v1/partials/{name} | Create or replace a partial ({{> name}}) |
GET | /v1/suppressions | List or search suppressions |
POST | /v1/suppressions | Suppress an address |
DELETE | /v1/suppressions/{email} | Remove an address from the list |
POST | /v1/suppressions/import | Import a Mailchimp, Mandrill or SendGrid export (CSV) |
GET | /v1/suppressions/export | Export the list as CSV |
GET | /v1/unsubscribe-groups | List unsubscribe groups |
POST | /v1/unsubscribe-groups | Create an unsubscribe group |
GET | /v1/webhooks | List webhook endpoints |
POST | /v1/webhooks | Add a webhook endpoint (the signing secret is shown once) |
DELETE | /v1/webhooks/{id} | Turn a webhook endpoint off |
GET | /v1/webhooks/{id}/deliveries | Deliveries of an endpoint (the dead-letter view) |
POST | /v1/webhooks/{id}/deliveries/{did}/replay | Replay a delivered or dead delivery |
GET | /v1/usage | Sends per day for this workspace, and its quota |
GET | /v1/workspace | Trust tier, pause, warm-up, rolling rates and quota |
POST | /v1/ses/events | Amazon SNS → SES events (signature-verified; not for customers) |
GET | /v1/unsubscribe/{token} | The unsubscribe page (signed link; never redirects) |
POST | /v1/unsubscribe/{token} | Unsubscribe (RFC 8058 one-click: body List-Unsubscribe=One-Click) |
From openapi/openapi.yaml.
Example
Send a message
curl https://www.sendcaravan.com/api/v1/send \
-H 'Authorization: Bearer sc_xxxxxxxxxxxx_...' \
-H 'Content-Type: application/json' \
-d '{"from":"[email protected]","to":"[email protected]","subject":"Your order is confirmed","text":"Thank you for your order!"}'Refusals come back as JSON with a code and a plain-English error, for example domain_not_verified.