Skip to main content
POST
Create or merge a lead

Authorizations

Authorization
string
header
required

API token (okt_...) or dashboard JWT

Headers

Idempotency-Key
string

8-128 chars of [A-Za-z0-9_.:-]. Same key and body replays the stored response for 24h; same key with another body returns 422.

Pattern: ^[\w.:-]{8,128}$
X-Request-ID
string

Correlation id (1-128 chars of [A-Za-z0-9_.-]). Echoed in the response; generated when absent or unsafe.

Pattern: ^[\w.-]{1,128}$

Body

application/json
name
string
Maximum string length: 200
phone
string
Maximum string length: 32
email
string<email>
Maximum string length: 254
status
string
Maximum string length: 50
temperature
string
Maximum string length: 50
opportunityValue
number
Required range: x >= 0
customFields
object
source
string
Maximum string length: 50
visitorId
string
Maximum string length: 128
opportunityName
string
Maximum string length: 200
opportunityStage
string
Maximum string length: 50
expectedCloseDate
string
Maximum string length: 40
opportunity
object

Response

Merged into an existing lead

success
boolean
required
requestId
string
required
timestamp
string<date-time>
required
data
any
required
meta
object

Pagination: { limit, nextCursor } or { page, limit, total }