Create a single lead
Creates one lead (or merges into an existing lead by email / phone-last-10). Requires the public_api:leads:write scope. Send an Idempotency-Key so a retry returns the original result instead of double-creating.
Authorizations
Admin-issued Personal Access Token, e.g. Authorization: Bearer mega_<64 hex>. The key carries scopes (public_api:leads:read, public_api:leads:write, public_api:webhooks:manage) and is locked to one customer.
Headers
The customer this request acts on. Must match the customer your key is locked to.
Client-generated unique key. Replaying the same key returns the original stored response instead of creating duplicates. Scoped per customer + endpoint; reuse with a different body returns 409.
Body
At least one of contact_name, contact_phone, contact_email is required.
google_ads, meta_ads, google_organic, direct, referral, hubspot, zoho, ghl, shopify, zenmaid, lead_docket, salesforce form, phone_call, email, chat, sms, manual, import Map of custom-field slug to a scalar value (string | number | boolean | null).
Response
The created (or merged) lead.