AI Email Marketing
Opportunities
Deals in the CRM pipeline: opened from replies, made in the CRM or made here. A stage is a key (conversation, meeting, proposal, won, lost) or a pipeline stage id from List pipelines. A new deal fires opportunity.created; a stage move fires opportunity.stage_changed.
/v1/opportunitiesList opportunities
POST/v1/opportunitiesCreate an opportunity
GET/v1/opportunities/{id}Get an opportunity
PATCH/v1/opportunities/{id}Update an opportunity
GET/v1/pipelinesList pipelines
List opportunities
/api/v1/opportunitiesNewest first. value is in the currency's main unit (12000.0 is 12,000 dollars).
Any API key, read-only included.
Parameters
| Name | Type | Description |
|---|---|---|
stage query |
string | conversation, meeting, proposal, won or lost. |
campaign_id query |
uuid | Only this campaign. |
pipeline_id query |
uuid | Only this pipeline. |
per_page query |
integer | Up to 100. Default 25. |
Errors
401Missing or invalid key422Invalid input, or not ready; the body has message and an errors object, one entry per field429More than 120 requests a minute
curl https://app.zicreach.com/api/v1/opportunities \
-H "Authorization: Bearer zk_your_key"
{
"data": [
{
"id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
"campaign_id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
"contact_name": "Jane Doe",
"company": "Example Ltd",
"stage": "meeting",
"value": 12000,
"currency": "USD",
"closed_at": null,
"created_at": "2026-09-23T15:02:00Z"
}
],
"meta": {
"current_page": 1,
"last_page": 1,
"total": 1
}
}
Create an opportunity
/api/v1/opportunitiesAdds a deal. Give at least a title, a lead_id, a contact_name or a company. Without a stage it starts In conversation.
Needs a read and write API key.
Body
| Name | Type | Description |
|---|---|---|
title |
string | Deal title. |
lead_id |
uuid | The lead (CRM contact) the deal is with. |
contact_name |
string | Who the deal is with, when they are not a lead. |
company |
string | Company name. |
crm_company_id |
uuid | A CRM company. |
value |
number | Deal value, for example 2500. |
currency |
string | Three-letter code. Default USD. |
stage |
string | conversation, meeting, proposal, won or lost. |
stage_id |
uuid | A pipeline stage id instead of stage. |
expected_close_on |
date | YYYY-MM-DD. |
notes |
string | Notes. |
Errors
401Missing or invalid key403Read-only key used for a change, or a key made by someone who is no longer an owner or admin422Invalid input, or not ready; the body has message and an errors object, one entry per field429More than 120 requests a minute
curl -X POST https://app.zicreach.com/api/v1/opportunities \
-H "Authorization: Bearer zk_your_key" \
-H "Content-Type: application/json" \
-d '{"title":"Acme pilot","lead_id":"example"}'
{
"data": {
"id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
"campaign_id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
"contact_name": "Jane Doe",
"company": "Example Ltd",
"stage": "meeting",
"value": 12000,
"currency": "USD",
"closed_at": null,
"created_at": "2026-09-23T15:02:00Z",
"title": "Example Ltd pilot",
"lead_id": null,
"pipeline_id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
"stage_id": "9d1c6a30-1c2d-4e5f-8a9b-0c1d2e3f4a55",
"stage_name": "Meeting booked",
"source": "reply",
"expected_close_on": "2026-11-30",
"notes": null,
"updated_at": "2026-09-24T08:00:00Z"
}
}
Get an opportunity
/api/v1/opportunities/{id}One deal with its pipeline stage.
Any API key, read-only included.
Parameters
| Name | Type | Description |
|---|---|---|
idrequired path |
uuid | Opportunity id. |
Errors
401Missing or invalid key404Not found in this workspace422Invalid input, or not ready; the body has message and an errors object, one entry per field429More than 120 requests a minute
curl https://app.zicreach.com/api/v1/opportunities/9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10 \
-H "Authorization: Bearer zk_your_key"
{
"data": {
"id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
"campaign_id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
"contact_name": "Jane Doe",
"company": "Example Ltd",
"stage": "meeting",
"value": 12000,
"currency": "USD",
"closed_at": null,
"created_at": "2026-09-23T15:02:00Z",
"title": "Example Ltd pilot",
"lead_id": null,
"pipeline_id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
"stage_id": "9d1c6a30-1c2d-4e5f-8a9b-0c1d2e3f4a55",
"stage_name": "Meeting booked",
"source": "reply",
"expected_close_on": "2026-11-30",
"notes": null,
"updated_at": "2026-09-24T08:00:00Z"
}
}
Update an opportunity
/api/v1/opportunities/{id}Moves the deal (stage or stage_id; won and lost close it) and changes its value, title, notes or close date. Send only what changes.
Needs a read and write API key.
Parameters
| Name | Type | Description |
|---|---|---|
idrequired path |
uuid | Opportunity id. |
Body
| Name | Type | Description |
|---|---|---|
stage |
string | conversation, meeting, proposal, won or lost. |
stage_id |
uuid | A pipeline stage id instead of stage. |
value |
number | Deal value. |
title |
string | Deal title. |
expected_close_on |
date | YYYY-MM-DD. |
notes |
string | Notes. |
Errors
401Missing or invalid key403Read-only key used for a change, or a key made by someone who is no longer an owner or admin404Not found in this workspace422Invalid input, or not ready; the body has message and an errors object, one entry per field429More than 120 requests a minute
curl -X PATCH https://app.zicreach.com/api/v1/opportunities/9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10 \
-H "Authorization: Bearer zk_your_key" \
-H "Content-Type: application/json" \
-d '{"stage":"meeting","stage_id":"example"}'
{
"data": {
"id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
"campaign_id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
"contact_name": "Jane Doe",
"company": "Example Ltd",
"stage": "won",
"value": 12000,
"currency": "USD",
"closed_at": "2026-10-02T11:00:00Z",
"created_at": "2026-09-23T15:02:00Z",
"title": "Example Ltd pilot",
"lead_id": null,
"pipeline_id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
"stage_id": "9d1c6a30-1c2d-4e5f-8a9b-0c1d2e3f4a55",
"stage_name": "Won",
"source": "reply",
"expected_close_on": "2026-11-30",
"notes": null,
"updated_at": "2026-09-24T08:00:00Z"
}
}
List pipelines
/api/v1/pipelinesThe workspace's deal pipelines and their stages, in board order. kind is open, won or lost.
Any API key, read-only included.
Errors
401Missing or invalid key429More than 120 requests a minute
curl https://app.zicreach.com/api/v1/pipelines \
-H "Authorization: Bearer zk_your_key"
{
"data": [
{
"id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
"name": "Sales pipeline",
"is_default": true,
"stages": [
{
"id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
"name": "In conversation",
"kind": "open",
"probability": 20
},
{
"id": "9d1c6a30-1c2d-4e5f-8a9b-0c1d2e3f4a55",
"name": "Meeting booked",
"kind": "open",
"probability": 40
},
{
"id": "9d1c6a31-2d3e-4f5a-9b0c-1d2e3f4a5b66",
"name": "Won",
"kind": "won",
"probability": 100
}
]
}
]
}