{ "success": false, "message": "Validation failed", "errors": [ { "field": "phone", "message": "Provide a phone number or an email address" } ]}
{ "success": false, "message": "A lead with this phone already exists for source \"api\"", "code": "DUPLICATE_LEAD_SOURCE"}
Push a lead into your Oktivo CRM from any external system — a website form, a
chatbot, an ad platform, a payment flow, or your own backend. The same person
arriving more than once is intelligently de-duplicated into a single lead with a
full source history, so you can fire this endpoint freely without creating
duplicates.
Authentication
This endpoint accepts an API Token (okt_...), or a logged-in JWT. Send
it as a Bearer token:
Authorization: Bearer okt_your_token_here
Generate a token in the dashboard under Settings → API Tokens → Create Token
(app.oktivo.com/account). The okt_... value is shown only once — copy it
immediately. Accounts allow up to 5 active tokens. See
Capturing Leads via API for a
step-by-step walkthrough and Authentication for rotation and
expiry.
The lead is always scoped to the token owner’s account — you cannot create
leads in another account. The crm_api feature must be enabled on your plan.
Identity Rule
A lead must be reachable, so at least one of phone or email is required.
name is optional. If you send neither a phone nor an email, the request is
rejected with a 400.Phone numbers are accepted in any common format and normalized to E.164. A
10-digit Indian mobile such as 9876543210 becomes +919876543210; an
already-E.164 value like +14155551234 is kept as-is.
Request Body
string
Contact’s display name. Optional. Maximum 200 characters. Aliases accepted
(first present wins, in this order): name, contactName, contact_name,
fullName, full_name.
string
Phone number. Any format is accepted and normalized to E.164. Required unless
email is provided.
string
Email address. Validated when present. Required unless phone is provided.
string
Pipeline stage for the lead, e.g. new, contacted, qualified,
negotiation, won, lost. Custom statuses configured for your org are also
accepted. Defaults to your pipeline’s first stage when omitted.
string
Intent signal. One of hot, warm, cold.
number
The lead’s primary deal amount. Accepts a plain number or a numeric string
(e.g. "₹2,50,000" → 250000). Feeds the dashboard opportunity funnel.
object
Acquisition attribution.
Show metadata properties
string
How the lead arrived. Only a known Oktivo source value is honoured;
anything else falls back to api. See Lead Sources below.
Together with the fields below, this drives the lead’s normalized
Channel and Source — see
How Channel and Source are determined.
string
The utm_source from the landing URL (e.g. google, newsletter). When
present, it becomes the lead’s derived Source.
string
The utm_medium (e.g. cpc, organic). Stored for attribution reporting.
string
The utm_campaign name. Stored for attribution reporting.
string
The referring URL (document.referrer). When no UTM is present but a
referrer is, the derived Source becomes Organic; with neither it is
Direct.
string
Delivery surface, e.g. web, whatsapp. For Meta leads the ad surface
(instagram / facebook) is preserved as the Channel’s platform
sub-detail.
string
Submitter’s IP address. If omitted, it is captured from the request. Used
as a match signal for ad-platform conversion APIs.
string
Submitter’s User-Agent. If omitted, it is captured from the request.
Any other metadata key (for example a platform’s verbatim eventType) is
stored as-is on the lead.
object
A bag of custom fields to store on the lead (industryData and fields are
accepted aliases). Keys max 50 characters, string values max 2000 characters.
Maximum 50 custom fields per lead.You can also send custom fields as plain top-level keys — any body key that is
not a reserved field name is treated as a custom field. The explicit
customFields object wins on key collisions.Example: {"course": "Data Science", "campaign": "spring-2026"}
string
Optional web-tracking visitor id. When present, the lead is stitched to that
visitor’s prior anonymous web activity. visitor_id is also accepted.
Deduplication
Oktivo keeps one lead per phone (or email) per account. How a repeat
arrival is handled depends on the source:
A repeat from a new source always merges into the existing lead and
appends an entry to its source history.
A repeat from a source the lead already has returns a 409 for curated
sources (manual, csv_import, api, webhook) to protect your data from
accidental overwrites.
For self-service / event-stream sources (website, chatbot, landing,
whatsapp, google_form, ai_powered_lead, payment_page_drop) a repeat
always merges and the latest non-empty values win — so returning visitors and
re-fired events never 409.
When a request merges into an existing lead, the response has
"merged": true and returns a 200. A brand-new lead returns 201 with
"merged": false.
Lead Sources
Set metadata.source to attribute the lead. Only these canonical values are
honoured; any other value is stored as api.
Source
Meaning
api
Generic programmatic ingestion (default)
webhook
Forwarded from an external webhook
website
Website capture form
chatbot
Website / app chatbot
whatsapp
WhatsApp conversation
google_form
Google Form submission
facebook_ad / google_ad
Ad-platform lead
ai_powered_lead
Your AI lead-scoring engine
payment_page_drop
Abandoned checkout
landing
Hosted landing page demo request
Response
boolean
true when the lead was created or merged.
boolean
true when the request merged into an existing lead (200); false for a
newly created lead (201).
object
Show data properties
string
Unique identifier for the lead.
string
Linked contact identifier (used when triggering calls).
string
Resolved contact name.
string
Normalized E.164 phone.
string
Normalized email.
string
Pipeline stage.
string
Lead temperature.
number
Primary deal amount, or null.
string
Created opportunity id, or null.
string
Resolved canonical source.
object
Stored custom fields.
string
ISO timestamp.
string
ISO timestamp.
The create response echoes the raw source you sent. The lead’s normalized
Channel and Source (the classification object with channel / source /
platform) are derived from the attribution signals above and surface when you
read the lead (the GET lead endpoints and the CRM dashboard), not in this
create response. See
How Channel and Source are determined.
{ "success": false, "message": "Validation failed", "errors": [ { "field": "phone", "message": "Provide a phone number or an email address" } ]}
{ "success": false, "message": "A lead with this phone already exists for source \"api\"", "code": "DUPLICATE_LEAD_SOURCE"}
Error Codes
Code
Meaning
400
Validation failed — check the errors array (missing phone/email, bad email, >50 custom fields, oversized value)
401
Missing or invalid token
403
crm_api feature not enabled on your plan
409
Duplicate lead for this source (DUPLICATE_LEAD_SOURCE) or email already belongs to another lead (DUPLICATE_LEAD_EMAIL)
429
Rate limit exceeded — wait and retry
500
Internal server error
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Oktivo Voice Platform","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/oktivo-stage-docs/c3bIROP6UAjDKw3o/logo/light.svg?fit=max\u0026auto=format\u0026n=c3bIROP6UAjDKw3o\u0026q=85\u0026s=1c98fac4d121323a27790697944c99b7","dark":"https://mintcdn.com/oktivo-stage-docs/c3bIROP6UAjDKw3o/logo/dark.svg?fit=max\u0026auto=format\u0026n=c3bIROP6UAjDKw3o\u0026q=85\u0026s=15f13a2059aaed381bcb0ce57887df79"},"favicon":"https://mintcdn.com/oktivo-stage-docs/c3bIROP6UAjDKw3o/favicon.svg?fit=max\u0026auto=format\u0026n=c3bIROP6UAjDKw3o\u0026q=85\u0026s=9c5dcbfa6a668979966a6d33ea53c9bc","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://client-backend.oktivo.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"oktivo-stage-docs","hasAudioNarration":false,"actualSubdomain":"oktivo-stage-docs","customDomains":["stage-docs.oktivo.com"],"gitSource":{"type":"github","owner":"op-oktivo","repo":"oktivo-voice-app","deployBranch":"stage","contentDirectory":"documentation","isPrivate":true,"mountPath":"","label":"","_id":"6afc2692fb78305a65834b0e"},"entitlements":{},"buildId":"6afd789936e6bb5efca0aa76","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"API Reference","count":14},{"language":"default","tag":"Webhooks","count":5},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Authentication","count":4},{"language":"default","tag":"Core Concepts","count":4},{"language":"default","tag":"Calls","count":3},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Connectors","count":3},{"language":"default","tag":"Leads","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/leads/create-lead","slug":"/api-reference/leads/create-lead","pageMetadata":{"title":"Capture a Lead","api":"POST /api/v1/crm/leads","description":"Create (or merge into) a lead in your Oktivo CRM dashboard.","href":"/api-reference/leads/create-lead"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create (or merge into) a lead in your Oktivo CRM dashboard.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Push a lead into your Oktivo CRM from any external system — a website form, a\nchatbot, an ad platform, a payment flow, or your own backend. The same person\narriving more than once is intelligently de-duplicated into a single lead with a\nfull source history, so you can fire this endpoint freely without creating\nduplicates.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`This endpoint accepts an `,_jsx(_components.strong,{children:`API Token`}),` (`,_jsx(_components.code,{children:`okt_...`}),`), or a logged-in `,_jsx(_components.strong,{children:`JWT`}),`. Send\nit as a Bearer token:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer okt_your_token_here`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Generate a token in the dashboard under `,_jsx(_components.strong,{children:`Settings → API Tokens → Create Token`}),`\n(`,_jsx(_components.code,{children:`app.oktivo.com/account`}),`). The `,_jsx(_components.code,{children:`okt_...`}),` value is shown only once — copy it\nimmediately. Accounts allow up to 5 active tokens. See\n`,_jsx(_components.a,{href:`/guides/lead-capture#1-create-an-api-token`,children:`Capturing Leads via API`}),` for a\nstep-by-step walkthrough and `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),` for rotation and\nexpiry.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The lead is always scoped to the token owner’s account — you cannot create\nleads in another account. The `,_jsx(_components.code,{children:`crm_api`}),` feature must be enabled on your plan.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`identity-rule`,children:`Identity Rule`}),`\n`,_jsxs(_components.p,{children:[`A lead must be reachable, so `,_jsxs(_components.strong,{children:[`at least one of `,_jsx(_components.code,{children:`phone`}),` or `,_jsx(_components.code,{children:`email`}),` is required`]}),`.\n`,_jsx(_components.code,{children:`name`}),` is optional. If you send neither a phone nor an email, the request is\nrejected with a `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Phone numbers are accepted in any common format and normalized to E.164. A\n10-digit Indian mobile such as `,_jsx(_components.code,{children:`9876543210`}),` becomes `,_jsx(_components.code,{children:`+919876543210`}),`; an\nalready-E.164 value like `,_jsx(_components.code,{children:`+14155551234`}),` is kept as-is.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsxs(_components.p,{children:[`Contact’s display name. Optional. Maximum 200 characters. Aliases accepted\n(first present wins, in this order): `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`contactName`}),`, `,_jsx(_components.code,{children:`contact_name`}),`,\n`,_jsx(_components.code,{children:`fullName`}),`, `,_jsx(_components.code,{children:`full_name`}),`.`]})}),`\n`,_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone`,children:_jsxs(_components.p,{children:[`Phone number. Any format is accepted and normalized to E.164. Required unless\n`,_jsx(_components.code,{children:`email`}),` is provided.`]})}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:_jsxs(_components.p,{children:[`Email address. Validated when present. Required unless `,_jsx(_components.code,{children:`phone`}),` is provided.`]})}),`\n`,_jsx(ParamField,{body:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Pipeline stage for the lead, e.g. `,_jsx(_components.code,{children:`new`}),`, `,_jsx(_components.code,{children:`contacted`}),`, `,_jsx(_components.code,{children:`qualified`}),`,\n`,_jsx(_components.code,{children:`negotiation`}),`, `,_jsx(_components.code,{children:`won`}),`, `,_jsx(_components.code,{children:`lost`}),`. Custom statuses configured for your org are also\naccepted. Defaults to your pipeline’s first stage when omitted.`]})}),`\n`,_jsx(ParamField,{body:`leadTemperature`,type:`string`,id:`param-lead-temperature`,children:_jsxs(_components.p,{children:[`Intent signal. One of `,_jsx(_components.code,{children:`hot`}),`, `,_jsx(_components.code,{children:`warm`}),`, `,_jsx(_components.code,{children:`cold`}),`.`]})}),`\n`,_jsx(ParamField,{body:`opportunityValue`,type:`number`,id:`param-opportunity-value`,children:_jsxs(_components.p,{children:[`The lead’s primary deal amount. Accepts a plain number or a numeric string\n(e.g. `,_jsx(_components.code,{children:`\"₹2,50,000\"`}),` → `,_jsx(_components.code,{children:`250000`}),`). Feeds the dashboard opportunity funnel.`]})}),`\n`,_jsxs(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:[_jsx(_components.p,{children:`Acquisition attribution.`}),_jsxs(Expandable,{title:`metadata properties`,children:[_jsx(ParamField,{body:`source`,type:`string`,id:`param-source`,children:_jsxs(_components.p,{children:[`How the lead arrived. Only a known Oktivo source value is honoured;\nanything else falls back to `,_jsx(_components.code,{children:`api`}),`. See `,_jsx(_components.a,{href:`#lead-sources`,children:`Lead Sources`}),` below.\nTogether with the fields below, this drives the lead’s normalized\n`,_jsx(_components.strong,{children:`Channel`}),` and `,_jsx(_components.strong,{children:`Source`}),` — see\n`,_jsx(_components.a,{href:`/guides/lead-capture#6-how-channel-and-source-are-determined`,children:`How Channel and Source are determined`}),`.`]})}),_jsx(ParamField,{body:`utmSource`,type:`string`,id:`param-utm-source`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`utm_source`}),` from the landing URL (e.g. `,_jsx(_components.code,{children:`google`}),`, `,_jsx(_components.code,{children:`newsletter`}),`). When\npresent, it becomes the lead’s derived `,_jsx(_components.strong,{children:`Source`}),`.`]})}),_jsx(ParamField,{body:`utmMedium`,type:`string`,id:`param-utm-medium`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`utm_medium`}),` (e.g. `,_jsx(_components.code,{children:`cpc`}),`, `,_jsx(_components.code,{children:`organic`}),`). Stored for attribution reporting.`]})}),_jsx(ParamField,{body:`utmCampaign`,type:`string`,id:`param-utm-campaign`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`utm_campaign`}),` name. Stored for attribution reporting.`]})}),_jsx(ParamField,{body:`referrer`,type:`string`,id:`param-referrer`,children:_jsxs(_components.p,{children:[`The referring URL (`,_jsx(_components.code,{children:`document.referrer`}),`). When no UTM is present but a\nreferrer is, the derived `,_jsx(_components.strong,{children:`Source`}),` becomes `,_jsx(_components.code,{children:`Organic`}),`; with neither it is\n`,_jsx(_components.code,{children:`Direct`}),`.`]})}),_jsx(ParamField,{body:`platform`,type:`string`,id:`param-platform`,children:_jsxs(_components.p,{children:[`Delivery surface, e.g. `,_jsx(_components.code,{children:`web`}),`, `,_jsx(_components.code,{children:`whatsapp`}),`. For Meta leads the ad surface\n(`,_jsx(_components.code,{children:`instagram`}),` / `,_jsx(_components.code,{children:`facebook`}),`) is preserved as the Channel’s platform\nsub-detail.`]})}),_jsx(ParamField,{body:`ip`,type:`string`,id:`param-ip`,children:_jsx(_components.p,{children:`Submitter’s IP address. If omitted, it is captured from the request. Used\nas a match signal for ad-platform conversion APIs.`})}),_jsx(ParamField,{body:`userAgent`,type:`string`,id:`param-user-agent`,children:_jsx(_components.p,{children:`Submitter’s User-Agent. If omitted, it is captured from the request.`})}),_jsxs(_components.p,{children:[`Any other `,_jsx(_components.code,{children:`metadata`}),` key (for example a platform’s verbatim `,_jsx(_components.code,{children:`eventType`}),`) is\nstored as-is on the lead.`]})]})]}),`\n`,_jsxs(ParamField,{body:`customFields`,type:`object`,id:`param-custom-fields`,children:[_jsxs(_components.p,{children:[`A bag of custom fields to store on the lead (`,_jsx(_components.code,{children:`industryData`}),` and `,_jsx(_components.code,{children:`fields`}),` are\naccepted aliases). Keys max 50 characters, string values max 2000 characters.\nMaximum `,_jsx(_components.strong,{children:`50`}),` custom fields per lead.`]}),_jsxs(_components.p,{children:[`You can also send custom fields as plain top-level keys — any body key that is\nnot a reserved field name is treated as a custom field. The explicit\n`,_jsx(_components.code,{children:`customFields`}),` object wins on key collisions.`]}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`{\"course\": \"Data Science\", \"campaign\": \"spring-2026\"}`})]})]}),`\n`,_jsx(ParamField,{body:`visitorId`,type:`string`,id:`param-visitor-id`,children:_jsxs(_components.p,{children:[`Optional web-tracking visitor id. When present, the lead is stitched to that\nvisitor’s prior anonymous web activity. `,_jsx(_components.code,{children:`visitor_id`}),` is also accepted.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`deduplication`,children:`Deduplication`}),`\n`,_jsxs(_components.p,{children:[`Oktivo keeps `,_jsx(_components.strong,{children:`one lead per phone (or email) per account`}),`. How a repeat\narrival is handled depends on the source:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A repeat from a `,_jsx(_components.strong,{children:`new source`}),` always merges into the existing lead and\nappends an entry to its source history.`]}),`\n`,_jsxs(_components.li,{children:[`A repeat from a source the lead `,_jsx(_components.strong,{children:`already has`}),` returns a `,_jsx(_components.code,{children:`409`}),` for curated\nsources (`,_jsx(_components.code,{children:`manual`}),`, `,_jsx(_components.code,{children:`csv_import`}),`, `,_jsx(_components.code,{children:`api`}),`, `,_jsx(_components.code,{children:`webhook`}),`) to protect your data from\naccidental overwrites.`]}),`\n`,_jsxs(_components.li,{children:[`For `,_jsx(_components.strong,{children:`self-service / event-stream sources`}),` (`,_jsx(_components.code,{children:`website`}),`, `,_jsx(_components.code,{children:`chatbot`}),`, `,_jsx(_components.code,{children:`landing`}),`,\n`,_jsx(_components.code,{children:`whatsapp`}),`, `,_jsx(_components.code,{children:`google_form`}),`, `,_jsx(_components.code,{children:`ai_powered_lead`}),`, `,_jsx(_components.code,{children:`payment_page_drop`}),`) a repeat\nalways merges and the latest non-empty values win — so returning visitors and\nre-fired events never 409.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`When a request merges into an existing lead, the response has\n`,_jsx(_components.code,{children:`\"merged\": true`}),` and returns a `,_jsx(_components.code,{children:`200`}),`. A brand-new lead returns `,_jsx(_components.code,{children:`201`}),` with\n`,_jsx(_components.code,{children:`\"merged\": false`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`lead-sources`,children:`Lead Sources`}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`metadata.source`}),` to attribute the lead. Only these canonical values are\nhonoured; any other value is stored as `,_jsx(_components.code,{children:`api`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Source`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api`})}),_jsx(_components.td,{children:`Generic programmatic ingestion (default)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`webhook`})}),_jsx(_components.td,{children:`Forwarded from an external webhook`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`website`})}),_jsx(_components.td,{children:`Website capture form`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chatbot`})}),_jsx(_components.td,{children:`Website / app chatbot`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`whatsapp`})}),_jsx(_components.td,{children:`WhatsApp conversation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`google_form`})}),_jsx(_components.td,{children:`Google Form submission`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`facebook_ad`}),` / `,_jsx(_components.code,{children:`google_ad`})]}),_jsx(_components.td,{children:`Ad-platform lead`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ai_powered_lead`})}),_jsx(_components.td,{children:`Your AI lead-scoring engine`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_page_drop`})}),_jsx(_components.td,{children:`Abandoned checkout`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`landing`})}),_jsx(_components.td,{children:`Hosted landing page demo request`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the lead was created or merged.`]})}),`\n`,_jsx(ResponseField,{name:`merged`,type:`boolean`,id:`param-merged`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the request merged into an existing lead (`,_jsx(_components.code,{children:`200`}),`); `,_jsx(_components.code,{children:`false`}),` for a\nnewly created lead (`,_jsx(_components.code,{children:`201`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data properties`,children:[_jsx(ResponseField,{name:`leadId`,type:`string`,id:`param-lead-id`,children:_jsx(_components.p,{children:`Unique identifier for the lead.`})}),_jsx(ResponseField,{name:`contactUID`,type:`string`,id:`param-contact-uid`,children:_jsx(_components.p,{children:`Linked contact identifier (used when triggering calls).`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:`Resolved contact name.`}),_jsx(ResponseField,{name:`phone`,type:`string`,id:`param-phone-1`,children:`Normalized E.164 phone.`}),_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email-1`,children:`Normalized email.`}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-1`,children:`Pipeline stage.`}),_jsx(ResponseField,{name:`leadTemperature`,type:`string`,id:`param-lead-temperature-1`,children:`Lead temperature.`}),_jsxs(ResponseField,{name:`opportunityValue`,type:`number`,id:`param-opportunity-value-1`,children:[`Primary deal amount, or `,_jsx(_components.code,{children:`null`}),`.`]}),_jsxs(ResponseField,{name:`opportunityId`,type:`string`,id:`param-opportunity-id`,children:[`Created opportunity id, or `,_jsx(_components.code,{children:`null`}),`.`]}),_jsx(ResponseField,{name:`source`,type:`string`,id:`param-source-1`,children:`Resolved canonical source.`}),_jsx(ResponseField,{name:`customFields`,type:`object`,id:`param-custom-fields-1`,children:`Stored custom fields.`}),_jsx(ResponseField,{name:`createdAt`,type:`string`,id:`param-created-at`,children:`ISO timestamp.`}),_jsx(ResponseField,{name:`updatedAt`,type:`string`,id:`param-updated-at`,children:`ISO timestamp.`})]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The create response echoes the raw `,_jsx(_components.code,{children:`source`}),` you sent. The lead’s `,_jsx(_components.strong,{children:`normalized\nChannel and Source`}),` (the `,_jsx(_components.code,{children:`classification`}),` object with `,_jsx(_components.code,{children:`channel`}),` / `,_jsx(_components.code,{children:`source`}),` /\n`,_jsx(_components.code,{children:`platform`}),`) are derived from the attribution signals above and surface when you\n`,_jsx(_components.strong,{children:`read`}),` the lead (the GET lead endpoints and the CRM dashboard), not in this\ncreate response. See\n`,_jsx(_components.a,{href:`/guides/lead-capture#6-how-channel-and-source-are-determined`,children:`How Channel and Source are determined`}),`.`]})}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`Validation failed — check the `,_jsx(_components.code,{children:`errors`}),` array (missing phone/email, bad email, >50 custom fields, oversized value)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Missing or invalid token`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`crm_api`}),` feature not enabled on your plan`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[`Duplicate lead for this source (`,_jsx(_components.code,{children:`DUPLICATE_LEAD_SOURCE`}),`) or email already belongs to another lead (`,_jsx(_components.code,{children:`DUPLICATE_LEAD_EMAIL`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Rate limit exceeded — wait and retry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Internal server error`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Capture a Lead","api":"POST /api/v1/crm/leads","description":"Create (or merge into) a lead in your Oktivo CRM dashboard.","href":"/api-reference/leads/create-lead"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Push a lead into your Oktivo CRM from any external system — a website form, a\nchatbot, an ad platform, a payment flow, or your own backend. The same person\narriving more than once is intelligently de-duplicated into a single lead with a\nfull source history, so you can fire this endpoint freely without creating\nduplicates.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`This endpoint accepts an `,_jsx(_components.strong,{children:`API Token`}),` (`,_jsx(_components.code,{children:`okt_...`}),`), or a logged-in `,_jsx(_components.strong,{children:`JWT`}),`. Send\nit as a Bearer token:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer okt_your_token_here`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Generate a token in the dashboard under `,_jsx(_components.strong,{children:`Settings → API Tokens → Create Token`}),`\n(`,_jsx(_components.code,{children:`app.oktivo.com/account`}),`). The `,_jsx(_components.code,{children:`okt_...`}),` value is shown only once — copy it\nimmediately. Accounts allow up to 5 active tokens. See\n`,_jsx(_components.a,{href:`/guides/lead-capture#1-create-an-api-token`,children:`Capturing Leads via API`}),` for a\nstep-by-step walkthrough and `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),` for rotation and\nexpiry.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The lead is always scoped to the token owner’s account — you cannot create\nleads in another account. The `,_jsx(_components.code,{children:`crm_api`}),` feature must be enabled on your plan.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`identity-rule`,children:`Identity Rule`}),`\n`,_jsxs(_components.p,{children:[`A lead must be reachable, so `,_jsxs(_components.strong,{children:[`at least one of `,_jsx(_components.code,{children:`phone`}),` or `,_jsx(_components.code,{children:`email`}),` is required`]}),`.\n`,_jsx(_components.code,{children:`name`}),` is optional. If you send neither a phone nor an email, the request is\nrejected with a `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Phone numbers are accepted in any common format and normalized to E.164. A\n10-digit Indian mobile such as `,_jsx(_components.code,{children:`9876543210`}),` becomes `,_jsx(_components.code,{children:`+919876543210`}),`; an\nalready-E.164 value like `,_jsx(_components.code,{children:`+14155551234`}),` is kept as-is.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsxs(_components.p,{children:[`Contact’s display name. Optional. Maximum 200 characters. Aliases accepted\n(first present wins, in this order): `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`contactName`}),`, `,_jsx(_components.code,{children:`contact_name`}),`,\n`,_jsx(_components.code,{children:`fullName`}),`, `,_jsx(_components.code,{children:`full_name`}),`.`]})}),`\n`,_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone`,children:_jsxs(_components.p,{children:[`Phone number. Any format is accepted and normalized to E.164. Required unless\n`,_jsx(_components.code,{children:`email`}),` is provided.`]})}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:_jsxs(_components.p,{children:[`Email address. Validated when present. Required unless `,_jsx(_components.code,{children:`phone`}),` is provided.`]})}),`\n`,_jsx(ParamField,{body:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Pipeline stage for the lead, e.g. `,_jsx(_components.code,{children:`new`}),`, `,_jsx(_components.code,{children:`contacted`}),`, `,_jsx(_components.code,{children:`qualified`}),`,\n`,_jsx(_components.code,{children:`negotiation`}),`, `,_jsx(_components.code,{children:`won`}),`, `,_jsx(_components.code,{children:`lost`}),`. Custom statuses configured for your org are also\naccepted. Defaults to your pipeline’s first stage when omitted.`]})}),`\n`,_jsx(ParamField,{body:`leadTemperature`,type:`string`,id:`param-lead-temperature`,children:_jsxs(_components.p,{children:[`Intent signal. One of `,_jsx(_components.code,{children:`hot`}),`, `,_jsx(_components.code,{children:`warm`}),`, `,_jsx(_components.code,{children:`cold`}),`.`]})}),`\n`,_jsx(ParamField,{body:`opportunityValue`,type:`number`,id:`param-opportunity-value`,children:_jsxs(_components.p,{children:[`The lead’s primary deal amount. Accepts a plain number or a numeric string\n(e.g. `,_jsx(_components.code,{children:`\"₹2,50,000\"`}),` → `,_jsx(_components.code,{children:`250000`}),`). Feeds the dashboard opportunity funnel.`]})}),`\n`,_jsxs(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:[_jsx(_components.p,{children:`Acquisition attribution.`}),_jsxs(Expandable,{title:`metadata properties`,children:[_jsx(ParamField,{body:`source`,type:`string`,id:`param-source`,children:_jsxs(_components.p,{children:[`How the lead arrived. Only a known Oktivo source value is honoured;\nanything else falls back to `,_jsx(_components.code,{children:`api`}),`. See `,_jsx(_components.a,{href:`#lead-sources`,children:`Lead Sources`}),` below.\nTogether with the fields below, this drives the lead’s normalized\n`,_jsx(_components.strong,{children:`Channel`}),` and `,_jsx(_components.strong,{children:`Source`}),` — see\n`,_jsx(_components.a,{href:`/guides/lead-capture#6-how-channel-and-source-are-determined`,children:`How Channel and Source are determined`}),`.`]})}),_jsx(ParamField,{body:`utmSource`,type:`string`,id:`param-utm-source`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`utm_source`}),` from the landing URL (e.g. `,_jsx(_components.code,{children:`google`}),`, `,_jsx(_components.code,{children:`newsletter`}),`). When\npresent, it becomes the lead’s derived `,_jsx(_components.strong,{children:`Source`}),`.`]})}),_jsx(ParamField,{body:`utmMedium`,type:`string`,id:`param-utm-medium`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`utm_medium`}),` (e.g. `,_jsx(_components.code,{children:`cpc`}),`, `,_jsx(_components.code,{children:`organic`}),`). Stored for attribution reporting.`]})}),_jsx(ParamField,{body:`utmCampaign`,type:`string`,id:`param-utm-campaign`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`utm_campaign`}),` name. Stored for attribution reporting.`]})}),_jsx(ParamField,{body:`referrer`,type:`string`,id:`param-referrer`,children:_jsxs(_components.p,{children:[`The referring URL (`,_jsx(_components.code,{children:`document.referrer`}),`). When no UTM is present but a\nreferrer is, the derived `,_jsx(_components.strong,{children:`Source`}),` becomes `,_jsx(_components.code,{children:`Organic`}),`; with neither it is\n`,_jsx(_components.code,{children:`Direct`}),`.`]})}),_jsx(ParamField,{body:`platform`,type:`string`,id:`param-platform`,children:_jsxs(_components.p,{children:[`Delivery surface, e.g. `,_jsx(_components.code,{children:`web`}),`, `,_jsx(_components.code,{children:`whatsapp`}),`. For Meta leads the ad surface\n(`,_jsx(_components.code,{children:`instagram`}),` / `,_jsx(_components.code,{children:`facebook`}),`) is preserved as the Channel’s platform\nsub-detail.`]})}),_jsx(ParamField,{body:`ip`,type:`string`,id:`param-ip`,children:_jsx(_components.p,{children:`Submitter’s IP address. If omitted, it is captured from the request. Used\nas a match signal for ad-platform conversion APIs.`})}),_jsx(ParamField,{body:`userAgent`,type:`string`,id:`param-user-agent`,children:_jsx(_components.p,{children:`Submitter’s User-Agent. If omitted, it is captured from the request.`})}),_jsxs(_components.p,{children:[`Any other `,_jsx(_components.code,{children:`metadata`}),` key (for example a platform’s verbatim `,_jsx(_components.code,{children:`eventType`}),`) is\nstored as-is on the lead.`]})]})]}),`\n`,_jsxs(ParamField,{body:`customFields`,type:`object`,id:`param-custom-fields`,children:[_jsxs(_components.p,{children:[`A bag of custom fields to store on the lead (`,_jsx(_components.code,{children:`industryData`}),` and `,_jsx(_components.code,{children:`fields`}),` are\naccepted aliases). Keys max 50 characters, string values max 2000 characters.\nMaximum `,_jsx(_components.strong,{children:`50`}),` custom fields per lead.`]}),_jsxs(_components.p,{children:[`You can also send custom fields as plain top-level keys — any body key that is\nnot a reserved field name is treated as a custom field. The explicit\n`,_jsx(_components.code,{children:`customFields`}),` object wins on key collisions.`]}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`{\"course\": \"Data Science\", \"campaign\": \"spring-2026\"}`})]})]}),`\n`,_jsx(ParamField,{body:`visitorId`,type:`string`,id:`param-visitor-id`,children:_jsxs(_components.p,{children:[`Optional web-tracking visitor id. When present, the lead is stitched to that\nvisitor’s prior anonymous web activity. `,_jsx(_components.code,{children:`visitor_id`}),` is also accepted.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`deduplication`,children:`Deduplication`}),`\n`,_jsxs(_components.p,{children:[`Oktivo keeps `,_jsx(_components.strong,{children:`one lead per phone (or email) per account`}),`. How a repeat\narrival is handled depends on the source:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A repeat from a `,_jsx(_components.strong,{children:`new source`}),` always merges into the existing lead and\nappends an entry to its source history.`]}),`\n`,_jsxs(_components.li,{children:[`A repeat from a source the lead `,_jsx(_components.strong,{children:`already has`}),` returns a `,_jsx(_components.code,{children:`409`}),` for curated\nsources (`,_jsx(_components.code,{children:`manual`}),`, `,_jsx(_components.code,{children:`csv_import`}),`, `,_jsx(_components.code,{children:`api`}),`, `,_jsx(_components.code,{children:`webhook`}),`) to protect your data from\naccidental overwrites.`]}),`\n`,_jsxs(_components.li,{children:[`For `,_jsx(_components.strong,{children:`self-service / event-stream sources`}),` (`,_jsx(_components.code,{children:`website`}),`, `,_jsx(_components.code,{children:`chatbot`}),`, `,_jsx(_components.code,{children:`landing`}),`,\n`,_jsx(_components.code,{children:`whatsapp`}),`, `,_jsx(_components.code,{children:`google_form`}),`, `,_jsx(_components.code,{children:`ai_powered_lead`}),`, `,_jsx(_components.code,{children:`payment_page_drop`}),`) a repeat\nalways merges and the latest non-empty values win — so returning visitors and\nre-fired events never 409.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`When a request merges into an existing lead, the response has\n`,_jsx(_components.code,{children:`\"merged\": true`}),` and returns a `,_jsx(_components.code,{children:`200`}),`. A brand-new lead returns `,_jsx(_components.code,{children:`201`}),` with\n`,_jsx(_components.code,{children:`\"merged\": false`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`lead-sources`,children:`Lead Sources`}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`metadata.source`}),` to attribute the lead. Only these canonical values are\nhonoured; any other value is stored as `,_jsx(_components.code,{children:`api`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Source`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api`})}),_jsx(_components.td,{children:`Generic programmatic ingestion (default)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`webhook`})}),_jsx(_components.td,{children:`Forwarded from an external webhook`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`website`})}),_jsx(_components.td,{children:`Website capture form`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chatbot`})}),_jsx(_components.td,{children:`Website / app chatbot`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`whatsapp`})}),_jsx(_components.td,{children:`WhatsApp conversation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`google_form`})}),_jsx(_components.td,{children:`Google Form submission`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`facebook_ad`}),` / `,_jsx(_components.code,{children:`google_ad`})]}),_jsx(_components.td,{children:`Ad-platform lead`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ai_powered_lead`})}),_jsx(_components.td,{children:`Your AI lead-scoring engine`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_page_drop`})}),_jsx(_components.td,{children:`Abandoned checkout`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`landing`})}),_jsx(_components.td,{children:`Hosted landing page demo request`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the lead was created or merged.`]})}),`\n`,_jsx(ResponseField,{name:`merged`,type:`boolean`,id:`param-merged`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the request merged into an existing lead (`,_jsx(_components.code,{children:`200`}),`); `,_jsx(_components.code,{children:`false`}),` for a\nnewly created lead (`,_jsx(_components.code,{children:`201`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data properties`,children:[_jsx(ResponseField,{name:`leadId`,type:`string`,id:`param-lead-id`,children:_jsx(_components.p,{children:`Unique identifier for the lead.`})}),_jsx(ResponseField,{name:`contactUID`,type:`string`,id:`param-contact-uid`,children:_jsx(_components.p,{children:`Linked contact identifier (used when triggering calls).`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:`Resolved contact name.`}),_jsx(ResponseField,{name:`phone`,type:`string`,id:`param-phone-1`,children:`Normalized E.164 phone.`}),_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email-1`,children:`Normalized email.`}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-1`,children:`Pipeline stage.`}),_jsx(ResponseField,{name:`leadTemperature`,type:`string`,id:`param-lead-temperature-1`,children:`Lead temperature.`}),_jsxs(ResponseField,{name:`opportunityValue`,type:`number`,id:`param-opportunity-value-1`,children:[`Primary deal amount, or `,_jsx(_components.code,{children:`null`}),`.`]}),_jsxs(ResponseField,{name:`opportunityId`,type:`string`,id:`param-opportunity-id`,children:[`Created opportunity id, or `,_jsx(_components.code,{children:`null`}),`.`]}),_jsx(ResponseField,{name:`source`,type:`string`,id:`param-source-1`,children:`Resolved canonical source.`}),_jsx(ResponseField,{name:`customFields`,type:`object`,id:`param-custom-fields-1`,children:`Stored custom fields.`}),_jsx(ResponseField,{name:`createdAt`,type:`string`,id:`param-created-at`,children:`ISO timestamp.`}),_jsx(ResponseField,{name:`updatedAt`,type:`string`,id:`param-updated-at`,children:`ISO timestamp.`})]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The create response echoes the raw `,_jsx(_components.code,{children:`source`}),` you sent. The lead’s `,_jsx(_components.strong,{children:`normalized\nChannel and Source`}),` (the `,_jsx(_components.code,{children:`classification`}),` object with `,_jsx(_components.code,{children:`channel`}),` / `,_jsx(_components.code,{children:`source`}),` /\n`,_jsx(_components.code,{children:`platform`}),`) are derived from the attribution signals above and surface when you\n`,_jsx(_components.strong,{children:`read`}),` the lead (the GET lead endpoints and the CRM dashboard), not in this\ncreate response. See\n`,_jsx(_components.a,{href:`/guides/lead-capture#6-how-channel-and-source-are-determined`,children:`How Channel and Source are determined`}),`.`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://client-backend.oktivo.com/api/v1/crm/leads`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer okt_your_token_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Priya Sharma\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"phone\": \"9876543210\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"[email protected]\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"status\": \"new\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"leadTemperature\": \"warm\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": { \"source\": \"website\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customFields\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"course\": \"Data Science\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"campaign\": \"spring-2026\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`18`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://client-backend.oktivo.com/api/v1/crm/leads\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`OKTIVO_API_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Priya Sharma\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` phone:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"9876543210\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"[email protected]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` metadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`source:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` customFields:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`course:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Data Science\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os, requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`res `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://client-backend.oktivo.com/api/v1/crm/leads\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'OKTIVO_API_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Priya Sharma\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9876543210\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"[email protected]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"course\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Data Science\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(res.json())`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`201 Created`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"leadId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lead_7f8a9b0c1d2e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"contactUID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contact_3e4f5g6h7i8j\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Priya Sharma\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+919876543210\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"[email protected]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"new\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"leadTemperature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"warm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"opportunityValue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"opportunityId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"course\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Data Science\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"campaign\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"spring-2026\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-06T09:12:33.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-06T09:12:33.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`200 Merged`,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"leadId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lead_7f8a9b0c1d2e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"contactUID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contact_3e4f5g6h7i8j\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Priya Sharma\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+919876543210\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"[email protected]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contacted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"leadTemperature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"course\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Data Science\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-06T09:12:33.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-06T10:40:01.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 Validation Error`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Provide a phone number or an email address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`409 Duplicate`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A lead with this phone already exists for source `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`api`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DUPLICATE_LEAD_SOURCE\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`Validation failed — check the `,_jsx(_components.code,{children:`errors`}),` array (missing phone/email, bad email, >50 custom fields, oversized value)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Missing or invalid token`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`crm_api`}),` feature not enabled on your plan`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[`Duplicate lead for this source (`,_jsx(_components.code,{children:`DUPLICATE_LEAD_SOURCE`}),`) or email already belongs to another lead (`,_jsx(_components.code,{children:`DUPLICATE_LEAD_EMAIL`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Rate limit exceeded — wait and retry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Internal server error`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Capture a Lead","api":"POST /api/v1/crm/leads","description":"Create (or merge into) a lead in your Oktivo CRM dashboard.","href":"/api-reference/leads/create-lead"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Identity Rule","slug":"identity-rule","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Deduplication","slug":"deduplication","depth":2,"children":[]},{"title":"Lead Sources","slug":"lead-sources","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://client-backend.oktivo.com/api/v1/crm/leads\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer okt_your_token_here\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"Priya Sharma\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"phone\": \"9876543210\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"email\": \"[email protected]\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"status\": \"new\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"leadTemperature\": \"warm\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"metadata\": { \"source\": \"website\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"customFields\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"course\": \"Data Science\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"campaign\": \"spring-2026\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"18\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> res\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://client-backend.oktivo.com/api/v1/crm/leads\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `Bearer \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">process\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">OKTIVO_API_TOKEN\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> name:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Priya Sharma\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> phone:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"9876543210\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> email:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"[email protected]\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> metadata:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">source:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> customFields:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">course:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Data Science\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"17\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os, requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">res \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://client-backend.oktivo.com/api/v1/crm/leads\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">os.environ[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'OKTIVO_API_TOKEN'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Priya Sharma\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"9876543210\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"[email protected]\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"source\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"customFields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"course\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Data Science\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(res.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201 Created","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"merged\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"leadId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"lead_7f8a9b0c1d2e\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"contactUID\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"contact_3e4f5g6h7i8j\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Priya Sharma\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+919876543210\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"[email protected]\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"new\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"leadTemperature\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"warm\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"opportunityValue\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"opportunityId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"source\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"customFields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"course\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Data Science\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"campaign\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"spring-2026\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"createdAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-06T09:12:33.000Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updatedAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-06T09:12:33.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"200 Merged","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"17\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"merged\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"leadId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"lead_7f8a9b0c1d2e\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"contactUID\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"contact_3e4f5g6h7i8j\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Priya Sharma\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"+919876543210\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"[email protected]\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"contacted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"leadTemperature\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"hot\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"source\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"customFields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"course\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Data Science\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"createdAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-06T09:12:33.000Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updatedAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-06T10:40:01.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400 Validation Error","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"errors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"field\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Provide a phone number or an email address\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"409 Duplicate","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A lead with this phone already exists for source \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">api\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"DUPLICATE_LEAD_SOURCE\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Capture a Lead","path":"/api/v1/crm/leads","servers":[{"url":"https://client-backend.oktivo.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"name":[{"type":"string","description":"Contact’s display name. Optional. Maximum 200 characters. Aliases accepted (first present wins, in this order): `name` , `contactName` , `contact_name` , `fullName` , `full_name` ."}],"phone":[{"type":"string","description":"Phone number. Any format is accepted and normalized to E.164. Required unless `email` is provided."}],"email":[{"type":"string","description":"Email address. Validated when present. Required unless `phone` is provided."}],"status":[{"type":"string","description":"Pipeline stage for the lead, e.g. `new` , `contacted` , `qualified` , `negotiation` , `won` , `lost` . Custom statuses configured for your org are also accepted. Defaults to your pipeline’s first stage when omitted."}],"leadTemperature":[{"type":"string","description":"Intent signal. One of `hot` , `warm` , `cold` ."}],"opportunityValue":[{"type":"number","description":"The lead’s primary deal amount. Accepts a plain number or a numeric string (e.g. `\"₹2,50,000\"` → `250000` ). Feeds the dashboard opportunity funnel."}],"metadata":[{"type":"object","properties":{"source":[{"type":"string","description":"How the lead arrived. Only a known Oktivo source value is honoured; anything else falls back to `api` . See Lead Sources below. Together with the fields below, this drives the lead’s normalized Channel and Source — see How Channel and Source are determined ."}],"utmSource":[{"type":"string","description":"The `utm_source` from the landing URL (e.g. `google` , `newsletter` ). When present, it becomes the lead’s derived Source ."}],"utmMedium":[{"type":"string","description":"The `utm_medium` (e.g. `cpc` , `organic` ). Stored for attribution reporting."}],"utmCampaign":[{"type":"string","description":"The `utm_campaign` name. Stored for attribution reporting."}],"referrer":[{"type":"string","description":"The referring URL ( `document.referrer` ). When no UTM is present but a referrer is, the derived Source becomes `Organic` ; with neither it is `Direct` ."}],"platform":[{"type":"string","description":"Delivery surface, e.g. `web` , `whatsapp` . For Meta leads the ad surface ( `instagram` / `facebook` ) is preserved as the Channel’s platform sub-detail."}],"ip":[{"type":"string","description":"Submitter’s IP address. If omitted, it is captured from the request. Used as a match signal for ad-platform conversion APIs."}],"userAgent":[{"type":"string","description":"Submitter’s User-Agent. If omitted, it is captured from the request."}]},"description":"Acquisition attribution."}],"customFields":[{"type":"object","properties":{},"description":"A bag of custom fields to store on the lead ( `industryData` and `fields` are accepted aliases). Keys max 50 characters, string values max 2000 characters. Maximum 50 custom fields per lead. You can also send custom fields as plain top-level keys — any body key that is not a reserved field name is treated as a custom field. The explicit `customFields` object wins on key collisions. Example: `{\"course\": \"Data Science\", \"campaign\": \"spring-2026\"}`"}],"visitorId":[{"type":"string","description":"Optional web-tracking visitor id. When present, the lead is stitched to that visitor’s prior anonymous web activity. `visitor_id` is also accepted."}]}}],"examples":{"example":{"value":{"name":"\u003cstring>","phone":"\u003cstring>","email":"\u003cstring>","status":"\u003cstring>","leadTemperature":"\u003cstring>","opportunityValue":123,"metadata":{"source":"\u003cstring>","utmSource":"\u003cstring>","utmMedium":"\u003cstring>","utmCampaign":"\u003cstring>","referrer":"\u003cstring>","platform":"\u003cstring>","ip":"\u003cstring>","userAgent":"\u003cstring>"},"customFields":{},"visitorId":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"`true` when the lead was created or merged."}],"merged":[{"type":"boolean","description":"`true` when the request merged into an existing lead ( `200` ); `false` for a newly created lead ( `201` )."}],"data":[{"type":"object","properties":{"leadId":[{"type":"string","description":"Unique identifier for the lead."}],"contactUID":[{"type":"string","description":"Linked contact identifier (used when triggering calls)."}],"name":[{"type":"string","description":"Resolved contact name."}],"phone":[{"type":"string","description":"Normalized E.164 phone."}],"email":[{"type":"string","description":"Normalized email."}],"status":[{"type":"string","description":"Pipeline stage."}],"leadTemperature":[{"type":"string","description":"Lead temperature."}],"opportunityValue":[{"type":"number","description":"Primary deal amount, or `null` ."}],"opportunityId":[{"type":"string","description":"Created opportunity id, or `null` ."}],"source":[{"type":"string","description":"Resolved canonical source."}],"customFields":[{"type":"object","properties":{},"description":"Stored custom fields."}],"createdAt":[{"type":"string","description":"ISO timestamp."}],"updatedAt":[{"type":"string","description":"ISO timestamp."}]}}]}}],"examples":{"example":{"value":{"success":true,"merged":true,"data":{"leadId":"\u003cstring>","contactUID":"\u003cstring>","name":"\u003cstring>","phone":"\u003cstring>","email":"\u003cstring>","status":"\u003cstring>","leadTemperature":"\u003cstring>","opportunityValue":123,"opportunityId":"\u003cstring>","source":"\u003cstring>","customFields":{},"createdAt":"\u003cstring>","updatedAt":"\u003cstring>"}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"oktivo-stage-docs","siteName":"Oktivo Voice Platform","title":"Capture a Lead - Oktivo Voice Platform","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T10:08:20.806Z","originalFileLocation":"api-reference/leads/create-lead.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create (or merge into) a lead in your Oktivo CRM dashboard.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Capture a Lead - Oktivo Voice Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create (or merge into) a lead in your Oktivo CRM dashboard.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://stage-docs.oktivo.com/api-reference/leads/create-lead\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://oktivo-stage-docs.mintlify.site/_mintlify/api/og/v2?division=Leads\u0026amp;title=Capture+a+Lead\u0026amp;description=Create+%28or+merge+into%29+a+lead+in+your+Oktivo+CRM+dashboard.\u0026amp;theme=cfcb37cdab6bd5c33dbe394c\u0026amp;signature=743290b8c3417fbc8bc22385f54222fbf908465b7feb0e02e87d4e2fb4280230\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Capture a Lead - Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create (or merge into) a lead in your Oktivo CRM dashboard.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://oktivo-stage-docs.mintlify.site/_mintlify/api/og/v2?division=Leads\u0026amp;title=Capture+a+Lead\u0026amp;description=Create+%28or+merge+into%29+a+lead+in+your+Oktivo+CRM+dashboard.\u0026amp;theme=cfcb37cdab6bd5c33dbe394c\u0026amp;signature=743290b8c3417fbc8bc22385f54222fbf908465b7feb0e02e87d4e2fb4280230\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/oktivo-stage-docs/PnhsQUrQRukt15PE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Oktivo Voice Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://stage-docs.oktivo.com/api-reference/leads/create-lead\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/leads/create-lead.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://stage-docs.oktivo.com/#organization\",\"name\":\"Oktivo Voice Platform\",\"url\":\"https://stage-docs.oktivo.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/oktivo-stage-docs/c3bIROP6UAjDKw3o/logo/light.svg?fit=max\u0026auto=format\u0026n=c3bIROP6UAjDKw3o\u0026q=85\u0026s=1c98fac4d121323a27790697944c99b7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://stage-docs.oktivo.com#website\",\"name\":\"Oktivo Voice Platform\",\"url\":\"https://stage-docs.oktivo.com\",\"publisher\":{\"@id\":\"https://stage-docs.oktivo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://stage-docs.oktivo.com/api-reference/leads/create-lead#webpage\",\"url\":\"https://stage-docs.oktivo.com/api-reference/leads/create-lead\",\"name\":\"Capture a Lead\",\"description\":\"Create (or merge into) a lead in your Oktivo CRM dashboard.\",\"dateModified\":\"2026-11-17T10:08:20.806Z\",\"isPartOf\":{\"@id\":\"https://stage-docs.oktivo.com#website\"},\"breadcrumb\":{\"@id\":\"https://stage-docs.oktivo.com/api-reference/leads/create-lead#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://stage-docs.oktivo.com/api-reference/leads/create-lead#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Oktivo Voice Platform\",\"item\":\"https://stage-docs.oktivo.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Capture a Lead\",\"item\":\"https://stage-docs.oktivo.com/api-reference/leads/create-lead\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://stage-docs.oktivo.com/api-reference/leads/create-lead#apireference\",\"headline\":\"Capture a Lead\",\"name\":\"Capture a Lead\",\"description\":\"Create (or merge into) a lead in your Oktivo CRM dashboard.\",\"url\":\"https://stage-docs.oktivo.com/api-reference/leads/create-lead\",\"mainEntityOfPage\":{\"@id\":\"https://stage-docs.oktivo.com/api-reference/leads/create-lead#webpage\"},\"dateModified\":\"2026-11-17T10:08:20.806Z\",\"publisher\":{\"@id\":\"https://stage-docs.oktivo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://stage-docs.oktivo.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Oktivo Voice Platform\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Oktivo Voice Platform\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/leads/create-lead.md","siteName":"Oktivo Voice Platform","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference Overview","href":"/api-reference/overview"}]},{"group":"Authentication","pages":[{"title":"Create Token","api":"POST /api/v1/crm/tokens","href":"/api-reference/authentication/create-token"},{"title":"List Tokens","api":"GET /api/v1/crm/tokens","href":"/api-reference/authentication/list-tokens"},{"title":"Delete Token","api":"DELETE /api/v1/crm/tokens/{tokenId}","href":"/api-reference/authentication/delete-token"},{"title":"Rotate Token","api":"POST /api/v1/crm/tokens/{tokenId}/rotate","href":"/api-reference/authentication/rotate-token"}]},{"group":"Calls","pages":[{"title":"Trigger Call","api":"POST /api/v1/crm/calls","href":"/api-reference/calls/trigger-call"},{"title":"Get Call Status","api":"GET /api/v1/crm/calls/{contactUID}","href":"/api-reference/calls/get-call-status"},{"title":"Cancel Call","api":"DELETE /api/v1/crm/calls/{contactUID}","description":"Cancel a pending/in-progress call and any scheduled retries.","href":"/api-reference/calls/cancel-call"}]},{"group":"Leads","pages":[{"title":"Capture a Lead","api":"POST /api/v1/crm/leads","href":"/api-reference/leads/create-lead"}]},{"group":"Webhooks","pages":[{"title":"Create Endpoint","api":"POST /webhooks/endpoints","description":"Create a webhook endpoint to receive call events.","href":"/api-reference/webhooks/create-endpoint"},{"title":"List Endpoints","api":"GET /webhooks/endpoints","href":"/api-reference/webhooks/list-endpoints"},{"title":"Update Endpoint","api":"PUT /webhooks/endpoints/{webhookId}","href":"/api-reference/webhooks/update-endpoint"},{"title":"Regenerate Secret","api":"POST /webhooks/endpoints/{webhookId}/regenerate-secret","href":"/api-reference/webhooks/regenerate-secret"},{"title":"Delete Endpoint","api":"DELETE /webhooks/endpoints/{webhookId}","href":"/api-reference/webhooks/delete-endpoint"}]}]}]},"basePath":"","title":"Capture a Lead - Oktivo Voice Platform","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-jJHA3WSo.js","utils-DbZn3Mjn.js","cloneDeep-CnBnaSyy.js","_Uint8Array-CMQtTgBR.js","isObject-FP1Yky1u.js","utils-Bl2DvzOJ.js","addUniqueKeysToSchema-BwOLo9p1.js","snippetPresets-BBiPpKa-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-C0px4Tml.js","isEqual-zAyttAAO.js","usePlaygroundInputsStore-Dell6dGw.js","shallow-0VKqkSqN.js","getApiPlaygroundDisplay-CP_ctPEB.js","CodeSnippet-5L35ic0s.js","CodeSnippets-DOXbNhJw.js","Page-DRLI_2Ue.js","getPastedJson-VhzT9m2P.js","icon-CD8_AtCO.js","MethodPill-DGgOMftG.js","DuplicateIcon-DZ6A_EtN.js","createIcon-DUl4oM5f.js","DynamicMarkdown-BGHukeRM.js","SectionHeading-ChrEUs8u.js","axios-vUo_bRtp.js"]}