Skip to the content
Sendcub

Authentication and scopes

How Sendcub API keys work, the nine scopes a key can hold, and what to do when a key leaks.

Updated
23 November 2026

Every call carries a key in an Authorization header. There are no other credentials, no OAuth dance and no session to keep alive.

curl https://api.sendcub.com/api/v1/contacts \
  -H "Authorization: Bearer sk_live_your_key_here"

A key belongs to one workspace. It never crosses into another, and it cannot read or write anything outside the workspace that created it.

Making a key

In Sendcub, open Settings, then Developers, then API keys. Choose the scopes it needs and nothing more.

The key is shown once, when it is created. Sendcub keeps a hash, not the key, so nobody can read it back to you later, including support. Put it straight into your secret store. If you lose it, create another and delete the old one.

Scopes

A key holds only the scopes you give it. A call outside them is refused with 403 and the scope it wanted, so a narrow key fails loudly rather than quietly doing more than you meant.

ScopeWhat it opens
contactsRead, upsert and delete contacts, and define custom fields
sendSend email
read_eventsRead sent messages and their delivery state
templatesRead your templates
eventsRecord what somebody did
verifyStart and check a phone verification
smtpSend through the SMTP relay instead of the API
apiThe general API surface

Give a server-side integration contacts, events and send. Give a reporting job read_events alone. Never put a key with send in front-end code: a key in a browser is a key anybody can read and use to send mail as you.

Sendcub refuses a request that arrives with both a key and a session cookie, for the same reason: a key being used from a signed-in browser is a key that has already escaped its server.

When a key leaks

Delete it in the same screen. Deletion takes effect at once, on every in-flight request. Then create a new one and deploy it. There is no grace period by design, because the point of deleting a key is that it stops working.

Sendcub watches for the shape of abuse on its side too, so a leaked key that starts sending unusual volume is held and reported to the workspace rather than quietly spending your plan.

Rate limits

Limits are per key and per route family. When you cross one, the answer is 429 with a Retry-After header in seconds. Treat it as a signal to back off, not as an error: wait the stated time and continue.

Batch where a batch route exists. One call with a thousand contacts is both faster for you and gentler on the limit than a thousand calls.

Try Sendcub

Sendcub opens to customers soon. Ask for early access and we will tell you the day your account is ready.

Request early access