The Lead API is authenticated with an account API token. Create one from your
account settings:
1
Open account settings
In the dashboard, click your account and open Settings
(app.oktivo.com/account).
2
Go to API Tokens
In the settings sidebar, select the API Tokens tab. You’ll see the
API Tokens panel listing any existing tokens with their expiry and
last-used date.
Settings → API Tokens: create, rotate, and delete tokens
3
Create the token
Click Create Token (top right), give it a recognisable name
(e.g. website-lead-capture), and choose an expiry (1–365 days).
4
Copy and store it
Copy the okt_... value immediately — it is shown only once. Store it
as a secret in whatever system will call the API; never commit it to source
control.
Each account can have a maximum of 5 active tokens. If you’ve hit the
limit, delete an unused token (trash icon) before creating a new one. Use the
rotate icon to replace a token’s value in a single step without changing where
it’s referenced.
See Authentication for token rotation and expiry details.
A 201 means a new lead was created; a 200 with "merged": true means the
person already existed and your data was merged in. See the full field reference
on Capture a Lead.
Any key that is not a reserved lead field is stored as a custom field and shows
up as a column on the CRM dashboard. Send them at the top level, or group them
under customFields:
5. Forward from an unauthenticated webhook (optional)
If a platform can only send plain, unauthenticated webhooks (no custom headers),
put a tiny proxy in front of the Lead API that attaches your Bearer token. This
repo ships a ready-made Cloudflare Worker at
cloudflare-lead-worker/ that maps an arbitrary webhook payload into the Lead
API body and forwards it. Set your OKTIVO_API_TOKEN as a Worker secret and
point the platform’s webhook at the Worker URL.