Skip to main content
POST
Track a lead
Use this endpoint from a trusted server when a customer signs up, submits a qualified form, starts a trial, or completes another lead event.

Authentication and permission

Send a secret biqli_... workspace API key with Conversions: Write (conversions.create). Do not use a browser publishable key or call this endpoint from frontend code.
The key selects the workspace. Do not send a workspace ID. Server tracking does not use browser origins or the allowed-hostname list.

Request

The attributed click must be active, unexpired, and belong to the API key’s workspace. A click from another workspace returns 404 resource_not_found.

Idempotency

Send a stable Idempotency-Key on every retry. Also send a stable eventId when your system has one. Repeating the same identifier and payload returns the original 201 response with Idempotency-Replayed: true and creates no new event, realtime update, or webhook delivery. Reusing an idempotency or event identifier with different data returns 409 idempotency_conflict. Idempotency records are retained for seven days; the event identifier remains durably unique within its workspace and source.

Response

The response uses public IDs only. Deleted links continue to resolve through their preserved conversion snapshot.

Errors

Authentication, errors, rate-limit headers, and request IDs follow the shared API conventions.

Authorizations

Authorization
string
header
required

A workspace API key beginning with biqli_.

Headers

Idempotency-Key
string

Stable retry key. Reuse only for the same logical request and payload.

Required string length: 1 - 255
X-Biq-Client
string

Integration name recorded in API diagnostics.

Maximum string length: 64
X-Biq-Client-Version
string

Integration version recorded in API diagnostics.

Maximum string length: 64
X-Biq-Request-Id
string

Caller-generated request identifier for tracing.

Required string length: 1 - 100
Pattern: ^[A-Za-z0-9._:-]+$

Body

application/json
eventName
string
required
Required string length: 1 - 255
customerExternalId
string
required
Required string length: 1 - 100
clickId
string | null
Required string length: 1 - 100
Pattern: ^[A-Za-z0-9_-]+$
customerName
string | null
Maximum string length: 255
customerEmail
string<email> | null
Maximum string length: 254
customerAvatar
string<uri> | null
Maximum string length: 2048
Pattern: ^https?://
eventId
string | null
Required string length: 1 - 100
Pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._:-]*[A-Za-z0-9])?$
eventQuantity
integer | null
default:1
Required range: 1 <= x <= 100
metadata
object | null
occurredAt
string<date-time> | null
Pattern: Z$

Response

Lead created or idempotently replayed.

event
object
required
click
object
required
customer
object
required
request_id
string
required