Request access

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

MethodPathWhat it does
GET/v1/pipelineEvery 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/eventsSend 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/journeysList 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}/pausePause a live journey: everyone in it waits where they are
POST/v1/journeys/{id}/resumeResume a paused journey
GET/v1/audiencesList audiences with member counts per status
POST/v1/audiencesCreate an audience (double opt-in on by default)
GET/v1/contactsList contacts (search, audience + status, tag)
POST/v1/contactsAdd 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}/statusSet the status in one audience (subscribed needs consent_source)
GET/v1/contacts/{id}/exportMKT-13: everything held about this person (JSON)
POST/v1/contacts/{id}/eraseMKT-13: erase this person (hashed consent proof and opt-outs are kept)
POST/v1/segments/countLive count of an audience’s subscribed contacts matching nested AND/OR rules
POST/v1/importsImport 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}/undoUndo an import inside its window (opt-outs stay)
GET/v1/campaignsList campaigns
POST/v1/campaignsCreate 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}/previewThe exact recipient count, exclusions with reasons, pre-send checks and the confirm_hash
POST/v1/campaigns/{id}/sendConfirm and send / schedule; refused unless confirm_hash matches the current audience and content
POST/v1/campaigns/{id}/pausePause: messages not yet handed to SES are pulled back
POST/v1/campaigns/{id}/resumeResume a paused campaign
POST/v1/campaigns/{id}/cancelCancel: nobody else gets it
GET/v1/campaigns/{id}/reportReport: unique/total opens and clicks, bounces, unsubscribes, complaints, links, providers, devices, A/B variants
POST/v1/messagesSend one message (queued in its lane)
GET/v1/messagesList messages (newest first)
POST/v1/messages/batchSend 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/templatesList templates
POST/v1/templatesCreate a template (version 1, draft)
GET/v1/templates/{ref}A template with all its versions
POST/v1/templates/{ref}/versionsAdd a new draft version
PATCH/v1/templates/{ref}/versions/{version}Edit a draft version
POST/v1/templates/{ref}/versions/{version}/publishMake a version active (publish, or roll back to an older one)
POST/v1/templates/{ref}/renderRender a version with data or a saved test data set
GET/v1/partialsList partials
PUT/v1/partials/{name}Create or replace a partial ({{> name}})
GET/v1/suppressionsList or search suppressions
POST/v1/suppressionsSuppress an address
DELETE/v1/suppressions/{email}Remove an address from the list
POST/v1/suppressions/importImport a Mailchimp, Mandrill or SendGrid export (CSV)
GET/v1/suppressions/exportExport the list as CSV
GET/v1/unsubscribe-groupsList unsubscribe groups
POST/v1/unsubscribe-groupsCreate an unsubscribe group
GET/v1/webhooksList webhook endpoints
POST/v1/webhooksAdd a webhook endpoint (the signing secret is shown once)
DELETE/v1/webhooks/{id}Turn a webhook endpoint off
GET/v1/webhooks/{id}/deliveriesDeliveries of an endpoint (the dead-letter view)
POST/v1/webhooks/{id}/deliveries/{did}/replayReplay a delivered or dead delivery
GET/v1/usageSends per day for this workspace, and its quota
GET/v1/workspaceTrust tier, pause, warm-up, rolling rates and quota
POST/v1/ses/eventsAmazon 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.