Authentication
API keys, the scopes they carry, and what they can't do.
API keys
Create keys in the app under Settings → API keys. A key:
- belongs to one workspace, and only ever sees that workspace's data;
- carries the scopes chosen when it was created;
- is shown once, when it is created;
- can be given an expiry date, and revoked at any time.
Send it as a bearer token on every request:
GET /api/v1/leads HTTP/1.1
Host: api.coldvenue.in
Authorization: Bearer mf_live_…Keep keys on your server. Anyone with a key can act on your workspace within its scopes. Never put a key in front-end code, a mobile app or a public repository. If a key leaks, revoke it in the app and create a new one.
Scopes
Give each integration its own key with only the scopes it needs. Each endpoint in the API reference lists the scopes it requires.
| Scope | Allows |
|---|---|
leads:read | Read leads and lists |
leads:write | Create, update, tag, verify and delete leads; manage lists |
campaigns:read | Read campaigns, sequences, enrolled leads and their history; preview emails |
campaigns:write | Create and edit draft campaigns, sequences and sending accounts; enrol and remove leads; set a lead's status |
accounts:read | Read sending accounts and their warmup |
accounts:write | Connect, update, pause and remove SMTP/IMAP mailboxes; change warmup (also needs accounts:read) |
emails:read | Read conversations, emails and reply status |
emails:send | Reply to emails; mark conversations read, archive, label and assign them |
analytics:read | Read analytics and account deliverability scores |
webhooks:read | Read webhook endpoints and their deliveries |
webhooks:write | Create, change and delete webhook endpoints; rotate secrets; redeliver events |
automations:read | Read automations and their runs |
automations:write | Pause and delete automations |
A few endpoints need two scopes; their reference page says so. For example,
Send a test email needs campaigns:read and
campaigns:write.
Some features also depend on your plan. Their reference pages name the plan feature, and a call
without it answers 402 with code PLAN_FEATURE_LOCKED.
What API keys can't do
These stay with the people in your workspace, in the app:
- launch, pause or resume a campaign;
- connect Gmail or Microsoft 365 mailboxes (they sign in with OAuth in the browser);
- create, edit or activate automations;
- manage members, billing, branding or API keys.
Authentication errors
| Status | Code | Meaning |
|---|---|---|
401 | UNAUTHENTICATED | No key, or the key is unknown, revoked or expired |
403 | FORBIDDEN | The key doesn't have the scope this endpoint needs |
404 | NOT_FOUND | The record doesn't exist in this key's workspace |
429 | RATE_LIMITED | Too many failed attempts from your IP address: see Rate limits |
Records of other workspaces always answer 404, never 403, so a key can't tell whether they
exist.