API reference
13 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/leads/{id}/notesAdd a note to a lead/api/v1/w/{workspaceId}/notes/{id}Delete a note/api/v1/w/{workspaceId}/companies/{id}/notesAdd a note to a company/api/v1/w/{workspaceId}/pipelineOpportunity pipeline by stage/api/v1/w/{workspaceId}/opportunitiesCreate an opportunity/api/v1/w/{workspaceId}/opportunities/{id}Update an opportunity (stage, value…)/api/v1/w/{workspaceId}/opportunities/{id}Delete an opportunity/api/v1/w/{workspaceId}/tasksTasks / follow-up reminders/api/v1/w/{workspaceId}/tasksCreate a task/api/v1/w/{workspaceId}/tasks/{id}Update / complete a task/api/v1/w/{workspaceId}/tasks/{id}Delete a task/api/v1/w/{workspaceId}/crm/forecastWeighted pipeline forecast, expected close by month, won revenue by month, win rate/api/v1/w/{workspaceId}/crm/opportunities/exportExport opportunities as CSV/api/v1/w/{workspaceId}/leads/{id}/notesAdd a note to a lead
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
bodyrequired | stringLength 1–10000 |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads/$ID/notes" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "string"
}'/api/v1/w/{workspaceId}/notes/{id}Delete a note
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/notes/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/companies/{id}/notesAdd a note to a company
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
bodyrequired | stringLength 1–10000 |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/companies/$ID/notes" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "string"
}'/api/v1/w/{workspaceId}/pipelineOpportunity pipeline by stage
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/pipeline" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/opportunitiesCreate an opportunity
Path parameters
workspaceIdrequired | string |
Request body (JSON)
leadIdrequired | string (uuid) |
titlerequired | stringLength 1–200 |
stage | enumOne of: NEW, QUALIFIED, MEETING, PROPOSAL, WON, LOST · Default "NEW" |
valueCents | integerRange 0–9007199254740991 · Default 0 |
currency | stringLength 3–3 · Default "USD" |
expectedCloseAt | any | null |
campaignId | string (uuid) | null |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/opportunities" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"leadId": "00000000-0000-4000-8000-000000000000",
"title": "string",
"stage": "NEW",
"valueCents": 0,
"currency": "USD",
"expectedCloseAt": null,
"campaignId": "00000000-0000-4000-8000-000000000000"
}'/api/v1/w/{workspaceId}/opportunities/{id}Update an opportunity (stage, value…)
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
leadId | string (uuid) |
title | stringLength 1–200 |
stage | enumOne of: NEW, QUALIFIED, MEETING, PROPOSAL, WON, LOST · Default "NEW" |
valueCents | integerRange 0–9007199254740991 · Default 0 |
currency | stringLength 3–3 · Default "USD" |
expectedCloseAt | any | null |
campaignId | string (uuid) | null |
curl -X PATCH "https://app.example.com/api/v1/w/$WORKSPACE_ID/opportunities/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"leadId": "00000000-0000-4000-8000-000000000000",
"title": "string",
"stage": "NEW",
"valueCents": 0,
"currency": "USD",
"expectedCloseAt": null,
"campaignId": "00000000-0000-4000-8000-000000000000"
}'/api/v1/w/{workspaceId}/opportunities/{id}Delete an opportunity
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/opportunities/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/tasksTasks / follow-up reminders
Path parameters
workspaceIdrequired | string |
Query parameters
status | enumOne of: OPEN, DONE, CANCELLED |
assigneeId | string (uuid) |
due | enumOne of: overdue, today, upcoming |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/tasks" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/tasksCreate a task
Path parameters
workspaceIdrequired | string |
Request body (JSON)
titlerequired | stringLength 1–200 |
description | string | null |
priority | enumOne of: LOW, MEDIUM, HIGH · Default "MEDIUM" |
dueAt | any | null |
assigneeId | string (uuid) | null |
leadId | string (uuid) | null |
conversationId | string (uuid) | null |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/tasks" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"description": "string",
"priority": "MEDIUM",
"dueAt": null,
"assigneeId": "00000000-0000-4000-8000-000000000000",
"leadId": "00000000-0000-4000-8000-000000000000",
"conversationId": "00000000-0000-4000-8000-000000000000"
}'/api/v1/w/{workspaceId}/tasks/{id}Update / complete a task
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
title | stringLength 1–200 |
description | string | null |
priority | enumOne of: LOW, MEDIUM, HIGH · Default "MEDIUM" |
dueAt | any | null |
assigneeId | string (uuid) | null |
leadId | string (uuid) | null |
conversationId | string (uuid) | null |
status | enumOne of: OPEN, DONE, CANCELLED |
curl -X PATCH "https://app.example.com/api/v1/w/$WORKSPACE_ID/tasks/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"description": "string",
"priority": "MEDIUM",
"dueAt": null,
"assigneeId": "00000000-0000-4000-8000-000000000000",
"leadId": "00000000-0000-4000-8000-000000000000",
"conversationId": "00000000-0000-4000-8000-000000000000",
"status": "OPEN"
}'/api/v1/w/{workspaceId}/tasks/{id}Delete a task
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/tasks/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/crm/forecastWeighted pipeline forecast, expected close by month, won revenue by month, win rate
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/crm/forecast" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/crm/opportunities/exportExport opportunities as CSV
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/crm/opportunities/export" \
-H "Authorization: Bearer $EMN_API_KEY"