API reference
8 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/leadsSearch / filter leads/api/v1/w/{workspaceId}/leadsCreate a lead/api/v1/w/{workspaceId}/leads/exportExport leads as CSV (same filters as list)/api/v1/w/{workspaceId}/leads/bulkBulk action on leads/api/v1/w/{workspaceId}/leads/{id}Lead profile with history, research, scores, conversations/api/v1/w/{workspaceId}/leads/{id}Update a lead (status changes are recorded)/api/v1/w/{workspaceId}/leads/{id}Delete a lead/api/v1/w/{workspaceId}/leads/{id}/verifyVerify the lead email now (uses configured verifier)/api/v1/w/{workspaceId}/leadsSearch / filter leads
Path parameters
workspaceIdrequired | string |
Query parameters
page | integerRange 1–9007199254740991 · Default 1 |
pageSize | integerRange 1–200 · Default 50 |
q | string |
status | enumOne of: NEW, RESEARCHED, QUALIFIED, DISQUALIFIED, CONTACTED, REPLIED, INTERESTED, MEETING_BOOKED, NOT_INTERESTED, CUSTOMER, UNSUBSCRIBED, BOUNCED |
listId | string (uuid) |
companyId | string (uuid) |
verification | enumOne of: UNVERIFIED, VALID, INVALID, RISKY, CATCH_ALL, UNKNOWN |
minScore | integerRange -9007199254740991–9007199254740991 |
country | string |
tag | string |
sort | enumOne of: createdAt, score, lastRepliedAt, email · Default "createdAt" |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/leadsCreate a lead
Path parameters
workspaceIdrequired | string |
Request body (JSON)
emailrequired | string |
firstName | string | null |
lastName | string | null |
title | string | null |
linkedinUrl | string (uri) | null | "" |
website | string | null |
phone | string | null |
country | string | null | "" |
city | string | null |
timezone | string | null |
companyName | string | null |
companyDomain | string | null |
lawfulBasis | enumOne of: UNKNOWN, CONSENT, LEGITIMATE_INTEREST, EXISTING_RELATIONSHIP, NOT_REQUIRED |
lawfulBasisNote | string | null |
tags | string[] |
customFields | object |
ownerId | string (uuid) | null |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "string",
"firstName": "string",
"lastName": "string",
"title": "string",
"linkedinUrl": "https://example.com",
"website": "string",
"phone": "string",
"country": "string",
"city": "string",
"timezone": "string",
"companyName": "string",
"companyDomain": "string",
"lawfulBasis": "UNKNOWN",
"lawfulBasisNote": "string",
"tags": [
"string"
],
"customFields": {},
"ownerId": "00000000-0000-4000-8000-000000000000"
}'/api/v1/w/{workspaceId}/leads/exportExport leads as CSV (same filters as list)
Path parameters
workspaceIdrequired | string |
Query parameters
page | integerRange 1–9007199254740991 · Default 1 |
pageSize | integerRange 1–200 · Default 50 |
q | string |
status | enumOne of: NEW, RESEARCHED, QUALIFIED, DISQUALIFIED, CONTACTED, REPLIED, INTERESTED, MEETING_BOOKED, NOT_INTERESTED, CUSTOMER, UNSUBSCRIBED, BOUNCED |
listId | string (uuid) |
companyId | string (uuid) |
verification | enumOne of: UNVERIFIED, VALID, INVALID, RISKY, CATCH_ALL, UNKNOWN |
minScore | integerRange -9007199254740991–9007199254740991 |
country | string |
tag | string |
sort | enumOne of: createdAt, score, lastRepliedAt, email · Default "createdAt" |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads/export" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/leads/bulkBulk action on leads
Path parameters
workspaceIdrequired | string |
Request body (JSON)
idsrequired | string (uuid)[] |
actionrequired | enumOne of: add_to_list, remove_from_list, add_tag, set_status, set_lawful_basis, research, score, verify, delete |
listId | string (uuid) |
tag | stringLength 0–50 |
status | enumOne of: NEW, RESEARCHED, QUALIFIED, DISQUALIFIED, CONTACTED, REPLIED, INTERESTED, MEETING_BOOKED, NOT_INTERESTED, CUSTOMER, UNSUBSCRIBED, BOUNCED |
lawfulBasis | enumOne of: UNKNOWN, CONSENT, LEGITIMATE_INTEREST, EXISTING_RELATIONSHIP, NOT_REQUIRED |
icpId | string (uuid) |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads/bulk" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ids": [
"00000000-0000-4000-8000-000000000000"
],
"action": "add_to_list",
"listId": "00000000-0000-4000-8000-000000000000",
"tag": "string",
"status": "NEW",
"lawfulBasis": "UNKNOWN",
"icpId": "00000000-0000-4000-8000-000000000000"
}'/api/v1/w/{workspaceId}/leads/{id}Lead profile with history, research, scores, conversations
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/leads/{id}Update a lead (status changes are recorded)
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
email | string |
firstName | string | null |
lastName | string | null |
title | string | null |
linkedinUrl | string (uri) | null | "" |
website | string | null |
phone | string | null |
country | string | null | "" |
city | string | null |
timezone | string | null |
companyName | string | null |
companyDomain | string | null |
lawfulBasis | enumOne of: UNKNOWN, CONSENT, LEGITIMATE_INTEREST, EXISTING_RELATIONSHIP, NOT_REQUIRED |
lawfulBasisNote | string | null |
tags | string[] |
customFields | object |
ownerId | string (uuid) | null |
status | enumOne of: NEW, RESEARCHED, QUALIFIED, DISQUALIFIED, CONTACTED, REPLIED, INTERESTED, MEETING_BOOKED, NOT_INTERESTED, CUSTOMER, UNSUBSCRIBED, BOUNCED |
curl -X PATCH "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "string",
"firstName": "string",
"lastName": "string",
"title": "string",
"linkedinUrl": "https://example.com",
"website": "string",
"phone": "string",
"country": "string",
"city": "string",
"timezone": "string",
"companyName": "string",
"companyDomain": "string",
"lawfulBasis": "UNKNOWN",
"lawfulBasisNote": "string",
"tags": [
"string"
],
"customFields": {},
"ownerId": "00000000-0000-4000-8000-000000000000",
"status": "NEW"
}'/api/v1/w/{workspaceId}/leads/{id}Delete a lead
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/leads/{id}/verifyVerify the lead email now (uses configured verifier)
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/leads/$ID/verify" \
-H "Authorization: Bearer $EMN_API_KEY"