Skip to main content
PATCH

Authorizations

Authorization
string
header
required

API key from Settings → API Keys in your workspace

Body

application/json
workflow_id
string
required

Journey ID from your workspace URL (not the Flow ID)

Example:

"98249779-79ae-462f-a0cf-7ce5129cc093"

record
object
required

Lead fields to create or update. On an existing lead, only the fields you include are changed and everything else stays the same. phone is required unless you provide lead_id.

lead_id
string

Existing lead UUID. Optional, but required if record doesn't include phone.

Example:

"307fc241-8398-4740-8122-cf6a59f3b86e"

Response

Lead created or updated, and enrolled successfully

status
string
Example:

"success"

lead_id
string
Example:

"307fc241-8398-4740-8122-cf6a59f3b86e"

workflow_assigned
boolean
Example:

true

message
string
Example:

"Lead successfully added to workflow"