Developers
API reference
Run your outreach from your own code: campaigns, replies, mailboxes, lead lists, leads and search.
Authentication
- Create an API key in the app under Settings, then APIs (owners and admins).
- Send it on every request in the Authorization header as Bearer zk_your_key (or in an X-Api-Key header).
- A key is shown once. A read-only key can call every GET endpoint; POST, PATCH and DELETE need a read and write key.
- Every call acts on the one workspace the key belongs to.
Your first request
curl https://app.zicreach.com/api/v1/account -H "Authorization: Bearer zk_your_key"
Pagination
Lists are paginated with page and per_page; the response has a meta object with current_page, last_page and total.
Response
{
"data": [
"..."
],
"meta": {
"current_page": 1,
"last_page": 4,
"total": 92
}
}
Errors
Errors use standard HTTP status codes and a JSON body with a message.
| Status | Meaning |
|---|---|
401 | Missing or invalid key |
402 | Over the plan, for example more leads in one call than the plan allows (error is plan_limit), a search import with no leads left this month (error is lead_quota; nothing was saved), or out of credits (error is no_credits; nothing was saved) |
403 | Read-only key used for a change, or a key made by someone who is no longer an owner or admin |
404 | Not found in this workspace |
409 | Conflict, for example already running |
422 | Invalid input, or not ready; the body has message and an errors object, one entry per field |
429 | More than 120 requests a minute |
Example error422
{
"message": "The email field must be a valid email address.",
"errors": {
"email": [
"The email field must be a valid email address."
]
}
}
Rate limits
At most 120 requests a minute. Over the limit, requests are refused with 429 until the minute is up.
Resources
General
AI Email Marketing
CampaignsCreate campaigns, change their content and schedule, add leads, and launch, pause or resume them. A new campaign starts as a draft.
- GET
/campaigns - POST
/campaigns - GET
/campaigns/{id} - PATCH
/campaigns/{id} - POST
/campaigns/{id}/launch - POST
/campaigns/{id}/pause - POST
/campaigns/{id}/resume - DEL
/campaigns/{id} - GET
/campaigns/{id}/leads - POST
/campaigns/{id}/leads - DEL
/campaigns/{id}/leads/{leadId} - GET
/campaigns/{id}/stats - GET
/campaigns/{id}/steps - PUT
/campaigns/{id}/steps