API

The Oblic API lets your servers send email, SMS and WhatsApp messages as your organization and see what became of each, record what your contacts do in your own systems, and manage the templates, sender identities, contact lists, webhooks and sub-accounts they send with. Your servers call it with an API key.

Base URL

Every path starts with https://api.oblic.app/external/v1, apart from the contact lists' older paths, which start with https://api.oblic.app/external/contact-list/v1.

Calling the API

The key you call with

curl https://api.oblic.app/external/v1/key \
  -H 'Authorization: Bearer YOUR_API_KEY'
  • Send an API key as Authorization: Bearer <key>. Keys are created under Settings → API Integration, each with the scopes it needs. Keep them on your servers: a key in a browser or a mobile app is a key anyone can read. See Authentication.
  • An answer with a body is JSON in one envelope: {"status": "success", "data": …, "errors": null}, or "status": "error" with the errors, each a code (cd) and a message. See Errors.
  • A platform acts for its tenants through sub-accounts: one key, and the tenant named in X-Oblic-On-Behalf-Of on each request.
  • Retry within retained key state with the same Idempotency-Key and the same body. Email and WhatsApp keys are held in Redis for 24 hours; cache loss or expiry can allow another send. An SMS key stays in its stored message row without time-based expiry. This is not a permanent exactly-once guarantee. See Messages.

Timestamps

Response timestamps that identify an instant include an ISO 8601 offset. For example, 2026-10-30T20:00:00Z and 2026-10-31T01:30:00+05:30 identify the same instant. Parse the offset before displaying the time in your reader's zone. JavaScript's new Date(value) and Java's OffsetDateTime.parse(value) do this; adding a Z to an offset-free value or parsing an instant as LocalDateTime does not.

A date-only value stays a date. An explicitly local schedule is a separate contract: its clock reading is paired with a time-zone field, not treated as an instant on its own.

Endpoints

"Needs" is the scope a key must hold for the route, any one of them where there are several. Some routes also need a key with the Owner or Admin role. A scope and role grant permission; service configuration and resource eligibility can still refuse the request.

Messages

MethodPathWhat it doesNeeds
GET/external/v1/messagesThe messages sent through the API, newest firstmessages:read
POST/external/v1/messages/emailSend an email from a verified sender, of its own HTML or by a templateemail:send
POST/external/v1/messages/smsSend an SMS that matches one of the account's DLT templatessms:send
POST/external/v1/messages/whatsappSend an approved WhatsApp template, or a reply within 24 hourswhatsapp:send
GET/external/v1/messages/{messageId}A message sent through the API, and what became of itmessages:read

Reports

MethodPathWhat it doesNeeds
GET/external/v1/reports/summaryWhat became of the messages sent in a period, by channel and statusmessages:read

Email templates

MethodPathWhat it doesNeeds
GET/external/v1/templatesThe account's email templates, newest firstemail:send or templates:manage
POST/external/v1/templatesMake an email template from HTMLtemplates:manage, Owner or Admin key
GET/external/v1/templates/{id}An email template, with its HTML and the variables it takesemail:send or templates:manage
PUT/external/v1/templates/{id}Replace an email template made from HTMLtemplates:manage, Owner or Admin key
DELETE/external/v1/templates/{id}Delete an email templatetemplates:manage, Owner or Admin key

SMS headers and templates

Only configured registry accounts may change the SMS registry, even with the required scope and role. These routes record headers and templates already registered with DLT; they do not register them with DLT. Template listings include approved templates, including inactive ones; send eligibility has additional guards.

MethodPathWhat it doesNeeds
GET/external/v1/sms/accountThe account's SMS limits, and what it has sent this monthsms:send or templates:manage
GET/external/v1/sms/sendersThe account's DLT headerssms:send or templates:manage
GET/external/v1/sms/templatesThe account's DLT templatessms:send or templates:manage
POST/external/v1/sms/templatesRecord an already DLT-registered template in Oblictemplates:manage, Owner or Admin key
PUT/external/v1/sms/senders/{senderId}Record a DLT header, or change whether it is the defaulttemplates:manage, Owner or Admin key
DELETE/external/v1/sms/senders/{senderId}Delete a DLT headertemplates:manage, Owner or Admin key
PUT/external/v1/sms/templates/{id}Change a DLT templatetemplates:manage, Owner or Admin key
DELETE/external/v1/sms/templates/{id}Delete a DLT templatetemplates:manage, Owner or Admin key
PUT/external/v1/sms/templates/{id}/sharingLet none, all, or the named sub-accounts send a templatetemplates:manage, Owner or Admin key

WhatsApp number and templates

MethodPathWhat it doesNeeds
GET/external/v1/whatsapp/connectionThe account's connected WhatsApp numberwhatsapp:send or templates:manage
POST/external/v1/whatsapp/connectionConnect the account's WhatsApp Business number, or replace ittemplates:manage, Owner or Admin key
DELETE/external/v1/whatsapp/connectionDisconnect the account's WhatsApp numbertemplates:manage, Owner or Admin key
GET/external/v1/whatsapp/templatesThe account's WhatsApp templates, with Meta's review of eachwhatsapp:send or templates:manage
POST/external/v1/whatsapp/templatesSubmit a WhatsApp template to Meta for reviewtemplates:manage, Owner or Admin key
GET/external/v1/whatsapp/recipients/{number}What the account may send a number nowwhatsapp:send or templates:manage

Sender identities

MethodPathWhat it doesNeeds
GET/external/v1/identitiesThe sender domains and addresses, and whether each is verifiedemail:send or identities:manage
POST/external/v1/identitiesAdd a sender domain or address, to be verifiedidentities:manage
DELETE/external/v1/identities/{identityId}Delete a sender identityidentities:manage

Contact lists

MethodPathWhat it doesNeeds
POST/external/contact-list/v1/addMake a contact listcontacts:manage
POST/external/contact-list/v1/{contactListId}/addAdd contacts to a contact listcontacts:manage
GET/external/contact-list/v1/{nextIndex}/{limit}The account's contact lists, a page at a timecontacts:manage

Events

MethodPathWhat it doesNeeds
POST/external/v1/eventsRecord up to 100 of your contacts' events, such as orders and abandoned cartsevents:write

Webhooks

MethodPathWhat it doesNeeds
GET/external/v1/webhooksThe organization's webhook endpointswebhooks:manage, Owner or Admin key
POST/external/v1/webhooksRegister a webhook endpoint, or find the one for the same URLwebhooks:manage, Owner or Admin key
GET/external/v1/webhooks/deliveriesThe deliveries that failed, most recently failed firstwebhooks:manage, Owner or Admin key
GET/external/v1/webhooks/{webhookId}A webhook endpointwebhooks:manage, Owner or Admin key
PUT/external/v1/webhooks/{webhookId}Change an endpoint's URL or event typeswebhooks:manage, Owner or Admin key
DELETE/external/v1/webhooks/{webhookId}Stop deliveries to an endpointwebhooks:manage, Owner or Admin key
POST/external/v1/webhooks/deliveries/{deliveryId}/replayQueue a failed delivery againwebhooks:manage, Owner or Admin key

Sub-accounts

MethodPathWhat it doesNeeds
GET/external/v1/accountsThe organization's sub-accountsaccounts:manage, Owner or Admin key
POST/external/v1/accountsCreate a sub-account, or find it by its externalId, with an API key of its ownaccounts:manage, Owner or Admin key
DELETE/external/v1/accounts/{accountId}Deactivate a sub-account and revoke its keysaccounts:manage, Owner or Admin key

The key

MethodPathWhat it doesNeeds
GET/external/v1/healthChecks that a key reaches the APIany key, Owner or Admin key
GET/external/v1/infoThe organization the key acts forany key
GET/external/v1/keyThe calling key: its name, role and scopes, and what it can do nowany key
Was this page helpful?