Base URL
https://api.leadjourney.io/apiEvery path in the reference is relative to it.
Developer API
The REST API behind the LeadJourney Zapier integration. Read your data and push leads, conversions, and tags into a workspace.
https://api.leadjourney.io/apiGetting started
Where to send requests, how to authenticate them, how workspaces scope them and what comes back. Then one call you can paste into a terminal.
https://api.leadjourney.io/apiEvery path in the reference is relative to it.
Send your token as a Bearer credential on every request:
Authorization: Bearer YOUR_TOKENCreate a token in LeadJourney under Settings, then API and Integrations.
Most endpoints are scoped to a workspace via the {workspace} path parameter. List available workspaces with GET /v1/profile/workspaces.
Successful responses are wrapped in an envelope:
{ "success": true, "data": { ... } }Errors return a non-2xx status with a message field.
Your first call: fetch the user that owns the token. It is the same request the Zapier integration makes to validate a connection.
curl -H "Authorization: Bearer YOUR_TOKEN" https://api.leadjourney.io/api/v1/profile{
"success": true,
"data": {
"user": {
"id": "9b1c0e2a-3f4d-4a6b-8c7e-1d2f3a4b5c6d",
"email": "[email protected]",
"has_verified_email": true,
"current_workspace_id": "2f8a1b3c-4d5e-6f70-8192-a3b4c5d6e7f8"
},
"has_verified_email": true,
"profile": {
"first_name": "Jamie",
"last_name": "Rivera",
"company_name": "Acme Inc.",
"phone": "+15551234567"
},
"user_hash": "a1b2c3d4e5f6"
}
}Identify the authenticated token and list the workspaces it can act on.
/v1/profileReturns the user that owns the API token. Used to validate a connection.
Requires Bearer token
Example response
{
"success": true,
"data": {
"user": {
"id": "9b1c0e2a-3f4d-4a6b-8c7e-1d2f3a4b5c6d",
"email": "[email protected]",
"has_verified_email": true,
"current_workspace_id": "2f8a1b3c-4d5e-6f70-8192-a3b4c5d6e7f8"
},
"has_verified_email": true,
"profile": {
"first_name": "Jamie",
"last_name": "Rivera",
"company_name": "Acme Inc.",
"phone": "+15551234567"
},
"user_hash": "a1b2c3d4e5f6"
}
}/v1/profile/workspacesLists every workspace the token can act on. The workspace id is used in the path of all workspace-scoped endpoints.
Requires Bearer token
Example response
{
"success": true,
"data": {
"workspaces": [
{
"id": "2f8a1b3c-4d5e-6f70-8192-a3b4c5d6e7f8",
"name": "Acme Marketing",
"role": "owner",
"has_full_access": true,
"onboarding_required": false,
"tracking_v2_enabled": true,
"trial": {
"is_on_trial": false,
"trial_expired": false,
"trial_ends_at": null,
"has_subscription": true
}
}
]
}
}Read conversion types and push leads or revenue conversions into a workspace.
/v1/workspaces/{workspace}/conversionsReturns the conversion types defined in the workspace.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Example response
{
"success": true,
"data": {
"conversions": [
{
"id": "7c9e6a1b-2d3f-4051-8627-a8b9c0d1e2f3",
"type": "Purchase",
"default_key": null,
"category": "Sales",
"mode": 1,
"send_to_ads": true,
"include_revenue": true,
"include_personal_details": false,
"created_at": "2026-05-01T10:15:00Z",
"events_count": 128,
"latest_event_at": "2026-06-08T19:02:11Z"
}
]
}
}/v1/workspaces/{workspace}/conversionsCreates a new conversion type in the workspace.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Request body
typestringConversion type name. Minimum 2 characters, unique per workspace.
modeintegerHandling mode: 1 = create, 2 = ignore, 3 = edit, 4 = keep.
Allowed: 1, 2, 3, 4
send_to_adsbooleanForward matching conversions to connected ad platforms.
descriptionstringFree-text description. Max 255 characters.
categorystringOptional grouping category. Max 100 characters.
include_revenuebooleanWhether conversions of this type carry revenue.
include_personal_detailsbooleanWhether personal details are captured with this conversion.
Example response
{
"success": true
}/v1/workspaces/{workspace}/conversions/trackRecords a conversion event against a lead. The lead is resolved by click_id, then email, then phone, creating a synthetic lead when none matches. Provide a type to record a conversion, or a tag to only apply a webhook tag.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Request body
click_iduuidLeadJourney click id. One of click_id, email, or phone is required.
emailstringLead email. Max 255 characters.
phonestringLead phone. Max 50 characters.
typestringConversion type name. Required unless a tag is provided.
revenuestringRevenue amount. Required when the conversion type carries revenue.
cash_collectedstringCash collected amount.
currencystringISO 4217 currency code (3 letters), e.g. USD.
first_namestringFirst name. Max 255 characters.
last_namestringLast name. Max 255 characters.
full_namestringFull name. Split into first/last when those are absent. Max 511 characters.
tagstringTag name to apply when no conversion type is sent. Max 50 characters.
zipstringPostal code. Max 20 characters.
custom_fieldsobjectKey-value pairs validated against the workspace custom fields.
At least one of click_id, email, or phone must identify the lead.
Example response
{
"success": true
}/v1/workspaces/{workspace}/conversions/track-leadCaptures a lead's identity without a revenue conversion, using the workspace default lead conversion. Resolution and de-duplication run downstream.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Request body
click_iduuidLeadJourney click id. One of click_id, email, or phone is required.
emailstringLead email. Max 255 characters.
phonestringLead phone. Max 50 characters.
first_namestringFirst name. Max 255 characters.
last_namestringLast name. Max 255 characters.
full_namestringFull name. Split into first/last when those are absent. Max 511 characters.
zipstringPostal code. Max 20 characters.
At least one of email, phone, or click_id must be provided.
Example response
{
"success": true
}Read and create the custom fields stored on each lead.
/v1/workspaces/{workspace}/custom-fieldsReturns the custom fields defined in the workspace.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Example response
{
"success": true,
"data": {
"custom_fields": [
{
"id": 14,
"name": "Plan",
"key": "plan",
"type": "text",
"available_in_reports": true,
"is_default": false,
"is_locked": false,
"sort_order": 3,
"created_at": "2026-03-20T09:30:00Z",
"updated_at": "2026-03-20T09:30:00Z"
}
]
}
}/v1/workspaces/{workspace}/custom-fieldsCreates a custom field. Up to 50 user-defined fields per workspace.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Request body
namestringDisplay name. 1 to 80 characters.
typestringField data type.
Allowed: text, number, currency
keystringWebhook key (lowercase, starts with a letter, max 64, unique). Auto-generated from name when omitted.
available_in_reportsbooleanShow the field in reports. Defaults to true.
Example response
{
"success": true,
"data": {
"custom_field": {
"id": 21,
"name": "Plan",
"key": "plan",
"type": "text",
"available_in_reports": true,
"is_default": false,
"is_locked": false,
"sort_order": 4,
"created_at": "2026-06-09T12:00:00Z",
"updated_at": "2026-06-09T12:00:00Z"
}
}
}Find a single lead by click id, email, or phone.
/v1/workspaces/{workspace}/zapier/leads/findLooks up a single lead by click id, email, or phone. Returns null in data.lead when no match is found.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Query parameters
click_idstringLeadJourney click id. One of click_id, email, or phone is required.
emailstringLead email.
phonestringLead phone.
Example response
{
"success": true,
"data": {
"lead": {
"id": "5d6e7f80-1a2b-3c4d-5e6f-708192a3b4c5",
"click_id": "0c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5",
"email": "[email protected]",
"phone": null,
"first_name": "Sam",
"last_name": "Lee",
"created_at": "2026-06-01T14:22:00Z",
"revenue": 199,
"conversions_count": 2,
"first_source": "google",
"last_source": "email",
"status": "converted",
"tags": [
{
"id": "a1f2e3d4-5c6b-7a89-90b1-c2d3e4f5a6b7",
"name": "Newsletter",
"color": "#03c879",
"type": "source",
"source": "rule"
}
],
"custom_fields": {
"plan": "pro"
}
}
}
}Subscribe and unsubscribe webhook targets. Zapier uses these to power instant triggers.
/v1/workspaces/{workspace}/zapier/subscriptionsRegisters a target URL to receive events. The response id is used to unsubscribe.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Request body
eventstringEvent to subscribe to.
Allowed: lead.created, conversion.created, click.created
target_urlstringHTTPS URL that receives the event payload. Max 2048 characters.
Example response
{
"success": true,
"data": {
"id": "9f8e7d6c-5b4a-3210-fedc-ba9876543210"
}
}/v1/workspaces/{workspace}/zapier/subscriptions/{subscription}Removes a webhook subscription by id.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
subscriptionuuidSubscription id returned when it was created.
Example response
{
"success": true
}Most recent items per type. Used for trigger sample data and as a polling fallback.
/v1/workspaces/{workspace}/zapier/recent/leadsReturns the most recent leads. Used for trigger sample data and polling.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Example response
{
"success": true,
"data": {
"leads": [
{
"id": "5d6e7f80-1a2b-3c4d-5e6f-708192a3b4c5",
"click_id": "0c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5",
"email": "[email protected]",
"phone": null,
"first_name": "Sam",
"last_name": "Lee",
"created_at": "2026-06-08T14:22:00Z",
"revenue": 199,
"conversions_count": 2,
"first_source": "google",
"last_source": "email",
"status": "converted",
"tags": []
}
]
}
}/v1/workspaces/{workspace}/zapier/recent/conversionsReturns the most recent conversion events.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Example response
{
"success": true,
"data": {
"conversions": [
{
"id": "11223344-5566-7788-99aa-bbccddeeff00",
"click_id": "0c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5",
"email": "[email protected]",
"phone": null,
"conversion_type": "Purchase",
"revenue": 199,
"currency": "USD",
"first_name": "Sam",
"last_name": "Lee",
"created_at": "2026-06-08T15:10:00Z"
}
]
}
}/v1/workspaces/{workspace}/zapier/recent/clicksReturns the most recent click and pageview events.
Requires Bearer token
Path parameters
workspaceuuidWorkspace id.
Example response
{
"success": true,
"data": {
"clicks": [
{
"id": "aa00bb11-cc22-dd33-ee44-ff5566778899",
"click_id": "0c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5",
"entry_page": "/pricing",
"entry_full_url": "https://acme.com/pricing?utm_source=email",
"referer": "https://mail.google.com/",
"source": "email",
"campaign": "june-newsletter",
"created_at": "2026-06-08T13:05:00Z"
}
]
}
}