API overview
GET/api/v1/account
What the Sendcub API does today, what it is for, and what it does not do yet. Read this before you plan an integration.
- Updated
- 23 November 2026
Routes on this page
1 route
- GET
/api/v1/accountAny valid key
Sendcub has one HTTP API. Your application sends contacts and the things people do, and Sendcub sends the email, keeps the consent record and keeps the list clean. Everything on this page is live today.
What you can build today
| You want to | The API gives you |
|---|---|
| Keep your customer list in step with Sendcub | Upsert one contact or a thousand, keyed on your own id |
| Store your own facts about a person | Typed custom fields you define once |
| Record what somebody did | An events route, so a purchase or a sign-in becomes something you can segment on later |
| Send a transactional email | A send route, with your own templates |
| Show delivery in your own admin | Read routes for messages and their delivery state |
| Respect an unsubscribe everywhere | One suppression list across every channel |
What it does not do yet
Being plain about this saves you a wasted afternoon:
- Segments and automations cannot be created through the API yet. You build them once in Sendcub, and your application drives contacts and events into them. A route to create a segment, and to ask whether a contact is in one, is the next thing being built.
- Only email is open today. Other channels are built and will be documented here as each one goes on sale.
- There is no official plugin yet for WordPress, WooCommerce or PrestaShop. They are planned, and they will be ordinary clients of this same API, so nothing you build now is wasted.
The shape of every call
The base address is https://api.sendcub.com/api/v1. Every request carries a key, every answer is JSON, and every refusal names the field it refused.
GET /api/v1/account is the call to make first: it answers with the workspace the key belongs to, the scopes the key holds and whether the workspace may send, so you can confirm a key works before writing anything else. Any valid key may call it.
Request
curl https://api.sendcub.com/api/v1/account \
-H "Authorization: Bearer sk_live_your_key_here"const res = await fetch("https://api.sendcub.com/api/v1/account", {
headers: { Authorization: "Bearer sk_live_your_key_here" },
});
const account = await res.json();Response
{
"workspace": {
"id": "8f14e45f-ea0c-4d71-9b2f-2a1c0d43b8a1",
"name": "Acme Store"
},
"key": {
"prefix": "sk_live_8f2a",
"scopes": ["contacts", "events", "send"]
},
"sending": {
"ready": true,
"reason": "ok",
"domains": ["mail.acme.co.mz"],
"maxRecipients": 50,
"maxMessageBytes": 16777216
}
}sending.ready is the one field worth checking at start-up. It is false with a reason of domain_not_verified until a sending domain is verified, which is the usual reason a first send is refused on a fresh workspace.
Four rules worth knowing before you start
- Your id is the key. Send your own identifier as
externalIdand you never have to store a Sendcub id. Upserts match on it. - Consent is never implied. Creating a contact does not subscribe it. A contact created with no consent can receive transactional mail, not marketing.
- An unsubscribe is final. If somebody unsubscribed, or an address bounced hard, writing that contact again does not put them back on the list. That is deliberate, and it is what keeps your sending reputation intact.
- Retries are safe when you ask for it. Send an
Idempotency-Keyand a repeated call returns the first result instead of doing the work twice.
Where to go next
Start with authentication to make a key with the right scopes, then contacts for the sync, then sending email.
