{
"message": "Error. Email and uid can not be blank!"
}
{
"message": "Visitor invalid, not found or you are trying to use the signup tracking test via API which doesn't work on API calls."
}
{
"transaction_id": "there is already a signup event registered on this lead"
}
Capture a lead when they sign-up or fill an optin form. This endpoint is used to track leads and sign-ups. It’s not for tracking the actual sales and commissions.
Sign-ups are tracked as leads in FirstPromoter so when a person referred by the promoter/affiliate signs up, a new referral should be added inside FirstPromoter (you can see them inside the Referrals section as Leads).
Using sub IDs, postbacks or ad tracking? Install the tracking script so it sets the _fprom_tid cookie when a visitor clicks a referral link, then send that cookie’s value in the tid parameter.
Authorizations
X-API-KEY
string
header
required
Query Parameters
email
string
required if uid is null
Email of the lead/sign-up
uid
string
required if email is null
ID to match the sale with the lead if the email can be changed before the first sale. If the sales are tracked by our built-in integrations and not by our API, the uid must match customer ID on Stripe, Braintree, Chargebee, Recurly. Since Stripe doesn't allow pre-defined customer id, you can also pass the uid value as fp_uid in customer metadata later, when you create the customer object.
tid
string
required if ref_id is null
Visitor tracking ID. It's set when the visitor tracking script tracks the referral visit on our system. The value is found inside _fprom_tid cookie. Grab that value from the cookie and pass it here to match the lead with the referral.
ref_id
string
required if tid is null
Default referral id of the promoter. Use this only when you want to assign the lead to a specific promoter.
ip
string
IP of the visitor who generated the sign up. It's used for fraud analysis.
promoter_email
string
Email of the promoter
created_at
string
ISO date string of the date of the signup event
skip_email_notification
boolean
Set this to true to skip email notifications. Default is false.
username
string
Username of the lead.
first_name
string
First name of the lead.
last_name
string
Last name of the lead.
website
string
Website URL of the lead.
custom_fields
object
JSON object of custom field key-value pairs to store on the lead.
sub_id
string
Subscriber/visitor sub-ID for tracking sub-channels.
override_existing_lead
boolean
Set to true to overwrite an existing lead record with the supplied data.
Response
Successful signup response
id
integer
Example:
33765409
type
string
Example:
"signup"
amount_cents
integer | null
reward
string | null
lead
object
Show child attributes
promoter
object
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FirstPromoter Docs","description":"FirstPromoter developer docs: set up affiliate and referral tracking, connect billing and payout providers, receive webhooks, and use the REST API and MCP server.","colors":{"primary":"#2497F3","light":"#42A5F5","dark":"#1A1C25"},"logo":{"light":"https://mintcdn.com/firstpromoter/Qml53iAwCwPGiKRZ/logo/light.svg?fit=max\u0026auto=format\u0026n=Qml53iAwCwPGiKRZ\u0026q=85\u0026s=17d35344b27497f795682da8932295c9","dark":"https://mintcdn.com/firstpromoter/Qml53iAwCwPGiKRZ/logo/dark.svg?fit=max\u0026auto=format\u0026n=Qml53iAwCwPGiKRZ\u0026q=85\u0026s=ef23e747176d9a87b5ddf122595793f8"},"favicon":"https://mintcdn.com/firstpromoter/rNk-Jdvp2vdjAvd9/favicon.png?fit=max\u0026auto=format\u0026n=rNk-Jdvp2vdjAvd9\u0026q=85\u0026s=7faf17e323609b0fef661b9a9fe49ebc","navbar":{"links":[{"href":"mailto:support@firstpromoter.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://login.firstpromoter.com/"}},"footer":{"socials":{"x":"https://x.com/firstpromoter","linkedin":"https://www.linkedin.com/company/first-promoter","facebook":"https://www.facebook.com/firstpromoter","github":"https://github.com/firstpromoter"},"links":[{"header":"Product","items":[{"label":"Features","href":"https://firstpromoter.com/features"},{"label":"Integrations","href":"https://firstpromoter.com/integrations"},{"label":"Pricing","href":"https://firstpromoter.com/pricing"},{"label":"Changelog","href":"https://changelog.firstpromoter.com/"},{"label":"Stripe app","href":"https://marketplace.stripe.com/apps/firstpromoter"}]},{"header":"Company","items":[{"label":"About us","href":"https://firstpromoter.com/about-us"},{"label":"Careers","href":"https://firstpromoter.com/careers"},{"label":"Blog","href":"https://firstpromoter.com/blog"},{"label":"Case studies","href":"https://firstpromoter.com/casestudy"},{"label":"Affiliate program","href":"https://firstpromoter.com/affiliate-program"}]},{"header":"Help","items":[{"label":"Help center","href":"https://help.firstpromoter.com/en"},{"label":"Contact support","href":"mailto:support@firstpromoter.com"},{"label":"Log in","href":"https://app.firstpromoter.com/login"}]},{"header":"Legal","items":[{"label":"Privacy policy","href":"https://firstpromoter.com/privacy"},{"label":"Terms of service","href":"https://firstpromoter.com/terms"}]}]},"search":{"prompt":"Search guides, integrations and API endpoints..."},"seo":{"metatags":{"canonical":"https://docs.firstpromoter.com"},"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude","cursor","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"firstpromoter","hasAudioNarration":false,"actualSubdomain":"firstpromoter","customDomains":["docs.firstpromoter.com"],"gitSource":{"type":"github","owner":"firstpromoter","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b05a0ae371c191c3d4d4fcc","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Documentation","count":253},{"language":"default","tag":"API Reference","count":83},{"language":"default","tag":"Integration Options","count":43},{"language":"default","tag":"Affiliate API Reference","count":32},{"language":"default","tag":"Promoters","count":25},{"language":"default","tag":"Platform","count":23},{"language":"default","tag":"Custom","count":9},{"language":"default","tag":"Webhooks","count":9},{"language":"default","tag":"Reports","count":8},{"language":"default","tag":"Payouts","count":7}]},"assistantConfig":{},"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":"site-roles","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-v1/tracking-api/leads-and-signups","slug":"/api-reference-v1/tracking-api/leads-and-signups","pageMetadata":{"title":"Tracking leads and sign-ups","description":"Track a lead or signup from your backend and attribute it to a promoter with the visitor's tid or ref_id (legacy v1 API).","openapi":"openapi-tracking POST /signup","href":"/api-reference-v1/tracking-api/leads-and-signups"},"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: \"Track a lead or signup from your backend and attribute it to a promoter with the visitor’s tid or ref_id (legacy v1 API).\"\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Tip}=_components;if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_components.p,{children:[`Capture a lead when they sign-up or fill an optin form. This endpoint is used to track leads and sign-ups. It’s not for tracking the actual sales and commissions. `,_jsx(`br`,{}),` `,_jsx(`br`,{}),` Sign-ups are tracked as leads in FirstPromoter so when a person referred by the promoter/affiliate signs up, a new referral should be added inside FirstPromoter `,_jsxs(_components.strong,{children:[`(you can see them inside the `,_jsx(_components.code,{children:`Referrals`}),` section as `,_jsx(_components.code,{children:`Leads`}),`)`]}),`. `,_jsx(`br`,{}),_jsx(`br`,{}),_jsxs(Tip,{children:[`Using sub IDs, postbacks or ad tracking? Install the tracking script so it sets the `,_jsx(_components.code,{children:`_fprom_tid`}),` cookie when a visitor clicks a referral link, then send that cookie’s value in the `,_jsx(_components.code,{children:`tid`}),` parameter.`]})]})}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":"Tracking leads and sign-ups","description":"Track a lead or signup from your backend and attribute it to a promoter with the visitor's tid or ref_id (legacy v1 API).","openapi":"openapi-tracking POST /signup","href":"/api-reference-v1/tracking-api/leads-and-signups"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/firstpromoter/8ad42af542d542c7/downloadables/fpr-prox.js"],"openApiReferenceData":{"operation":{"description":"Track a lead or signup from your backend and attribute it to a promoter with the visitor's tid or ref_id (legacy v1 API).","parameters":["77faf52f-5306-4bd0-9766-8173390ac19f","934340f5-685a-4226-90e2-899d394618b3","af5fce68-0a59-4126-997c-dcddb62fccd4","04f07d0c-4390-4b04-a084-0d917ec0b363","d9790abc-c9e1-4bd1-84b4-b98cd72deede","3bac5c48-80c4-4a1e-8aca-0a6719184c22","ef699036-ac28-4441-a62a-8b06ae5961e2","552f265f-75b0-444f-b86a-43f136a5a124","a384e91a-cc78-4d6c-bff2-0a11d31d87d8","e1679f54-db7c-4b20-86f5-60ee686d5ea6","46ce4d19-20d6-47dc-91ad-2d60d3e360b0","3e8a4e29-da56-4cc2-9eda-8742bfe23a78","17b97cfb-caf8-4ca3-9516-308bc72aa5cf","7773a6e3-00dc-4cb6-afac-3f682808878d","1dfba414-5f3d-4e48-828c-d3fdc9db808a"],"responses":{"200":"1c364f65-6c83-4eb4-b566-ca19f0a9bebc","400":"d878553f-4019-451e-af0e-7187b3ce6b71","404":"a445299a-1f0e-4ca6-be40-45e78a64bb71","422":"9fdbde3d-5599-4f4b-9216-a5b0e8c7d897"},"method":"post","type":"path","servers":["74884482-9112-44c8-8f60-9908b3c0be80"],"security":["2caa02b8-9a52-4447-9157-ef0a0f32335e"],"path":"/signup","baseUrlOptions":["https://firstpromoter.com/api/v1/track"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"77faf52f-5306-4bd0-9766-8173390ac19f":{"name":"email","in":"query","description":"`required if uid is null` \n\nEmail of the lead/sign-up","schema":{"type":"string","description":"`required if uid is null` \n\nEmail of the lead/sign-up","uniqueKey":"","typeLabel":"string"}},"934340f5-685a-4226-90e2-899d394618b3":{"name":"uid","in":"query","description":"`required if email is null` \n\nID to match the sale with the lead if the email can be changed before the first sale. If the sales are tracked by our built-in integrations and not by our API, the `uid` must match customer ID on Stripe, Braintree, Chargebee, Recurly. Since Stripe doesn't allow pre-defined customer id, you can also pass the `uid` value as `fp_uid` in customer metadata later, when you create the customer object.","schema":{"type":"string","description":"`required if email is null` \n\nID to match the sale with the lead if the email can be changed before the first sale. If the sales are tracked by our built-in integrations and not by our API, the `uid` must match customer ID on Stripe, Braintree, Chargebee, Recurly. Since Stripe doesn't allow pre-defined customer id, you can also pass the `uid` value as `fp_uid` in customer metadata later, when you create the customer object.","uniqueKey":"","typeLabel":"string"}},"af5fce68-0a59-4126-997c-dcddb62fccd4":{"name":"tid","in":"query","description":"`required if ref_id is null` \n\n Visitor tracking ID. It's set when the visitor tracking script tracks the referral visit on our system. The value is found inside `_fprom_tid` cookie. Grab that value from the cookie and pass it here to match the lead with the referral.","schema":{"type":"string","description":"`required if ref_id is null` \n\n Visitor tracking ID. It's set when the visitor tracking script tracks the referral visit on our system. The value is found inside `_fprom_tid` cookie. Grab that value from the cookie and pass it here to match the lead with the referral.","uniqueKey":"","typeLabel":"string"}},"04f07d0c-4390-4b04-a084-0d917ec0b363":{"name":"ref_id","in":"query","description":"`required if tid is null` \n\n Default referral id of the promoter. Use this only when you want to assign the lead to a specific promoter.","schema":{"type":"string","description":"`required if tid is null` \n\n Default referral id of the promoter. Use this only when you want to assign the lead to a specific promoter.","uniqueKey":"","typeLabel":"string"}},"d9790abc-c9e1-4bd1-84b4-b98cd72deede":{"name":"ip","in":"query","description":"IP of the visitor who generated the sign up. It's used for fraud analysis.","schema":{"type":"string","description":"IP of the visitor who generated the sign up. It's used for fraud analysis.","uniqueKey":"","typeLabel":"string"}},"3bac5c48-80c4-4a1e-8aca-0a6719184c22":{"name":"promoter_email","in":"query","description":"Email of the promoter","schema":{"type":"string","description":"Email of the promoter","uniqueKey":"","typeLabel":"string"}},"ef699036-ac28-4441-a62a-8b06ae5961e2":{"name":"created_at","in":"query","description":"ISO date string of the date of the signup event","schema":{"type":"string","description":"ISO date string of the date of the signup event","uniqueKey":"","typeLabel":"string"}},"552f265f-75b0-444f-b86a-43f136a5a124":{"name":"skip_email_notification","in":"query","description":"Set this to `true` to skip email notifications. Default is `false`.","schema":{"type":"boolean","description":"Set this to `true` to skip email notifications. Default is `false`.","uniqueKey":"","typeLabel":"boolean"}},"a384e91a-cc78-4d6c-bff2-0a11d31d87d8":{"name":"username","in":"query","description":"Username of the lead.","schema":{"type":"string","description":"Username of the lead.","uniqueKey":"","typeLabel":"string"}},"e1679f54-db7c-4b20-86f5-60ee686d5ea6":{"name":"first_name","in":"query","description":"First name of the lead.","schema":{"type":"string","description":"First name of the lead.","uniqueKey":"","typeLabel":"string"}},"46ce4d19-20d6-47dc-91ad-2d60d3e360b0":{"name":"last_name","in":"query","description":"Last name of the lead.","schema":{"type":"string","description":"Last name of the lead.","uniqueKey":"","typeLabel":"string"}},"3e8a4e29-da56-4cc2-9eda-8742bfe23a78":{"name":"website","in":"query","description":"Website URL of the lead.","schema":{"type":"string","description":"Website URL of the lead.","uniqueKey":"","typeLabel":"string"}},"17b97cfb-caf8-4ca3-9516-308bc72aa5cf":{"name":"custom_fields","in":"query","description":"JSON object of custom field key-value pairs to store on the lead.","schema":{"type":"object","description":"JSON object of custom field key-value pairs to store on the lead.","uniqueKey":"","typeLabel":"object"}},"7773a6e3-00dc-4cb6-afac-3f682808878d":{"name":"sub_id","in":"query","description":"Subscriber/visitor sub-ID for tracking sub-channels.","schema":{"type":"string","description":"Subscriber/visitor sub-ID for tracking sub-channels.","uniqueKey":"","typeLabel":"string"}},"1dfba414-5f3d-4e48-828c-d3fdc9db808a":{"name":"override_existing_lead","in":"query","description":"Set to `true` to overwrite an existing lead record with the supplied data.","schema":{"type":"boolean","description":"Set to `true` to overwrite an existing lead record with the supplied data.","uniqueKey":"","typeLabel":"boolean"}}},"responses":{"1c364f65-6c83-4eb4-b566-ca19f0a9bebc":{"description":"Successful signup response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","example":33765409,"uniqueKey":"id","typeLabel":"integer"},"type":{"type":"string","example":"signup","uniqueKey":"type","typeLabel":"string"},"amount_cents":{"oneOf":[{"type":"integer","uniqueKey":"amount_cents.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"amount_cents.oneOf.1","typeLabel":"null"}],"uniqueKey":"amount_cents","typeLabel":"integer | null"},"reward":{"oneOf":[{"type":"string","uniqueKey":"reward.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"reward.oneOf.1","typeLabel":"null"}],"uniqueKey":"reward","typeLabel":"string | null"},"lead":{"type":"object","properties":{"id":{"type":"integer","example":20738339,"uniqueKey":"lead.id","typeLabel":"integer"},"state":{"type":"string","example":"cancelled","uniqueKey":"lead.state","typeLabel":"string"},"email":{"type":"string","example":"hello@testmintli.com","uniqueKey":"lead.email","typeLabel":"string"},"uid":{"oneOf":[{"type":"string","example":null,"uniqueKey":"lead.uid.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"lead.uid.oneOf.1","typeLabel":"null"}],"uniqueKey":"lead.uid","typeLabel":"string | null"},"customer_since":{"type":"string","format":"date-time","example":"2024-09-11T14:22:12.160Z","uniqueKey":"lead.customer_since","typeLabel":"string\u003cdate-time>"},"cancelled_at":{"type":"string","format":"date-time","example":"2024-09-11T15:07:46.174Z","uniqueKey":"lead.cancelled_at","typeLabel":"string\u003cdate-time>"},"plan_name":{"oneOf":[{"type":"string","example":null,"uniqueKey":"lead.plan_name.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"lead.plan_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"lead.plan_name","typeLabel":"string | null"},"suspicion":{"type":"string","example":"no_suspicion","uniqueKey":"lead.suspicion","typeLabel":"string"},"username":{"oneOf":[{"type":"string","example":null,"uniqueKey":"lead.username.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"lead.username.oneOf.1","typeLabel":"null"}],"uniqueKey":"lead.username","typeLabel":"string | null"},"website":{"oneOf":[{"type":"string","example":null,"uniqueKey":"lead.website.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"lead.website.oneOf.1","typeLabel":"null"}],"uniqueKey":"lead.website","typeLabel":"string | null"},"created_at":{"type":"string","format":"date-time","example":"2024-09-09T16:22:44.168Z","uniqueKey":"lead.created_at","typeLabel":"string\u003cdate-time>"},"split_promotion_id":{"oneOf":[{"type":"string","example":null,"uniqueKey":"lead.split_promotion_id.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"lead.split_promotion_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"lead.split_promotion_id","typeLabel":"string | null"},"custom_fields":{"oneOf":[{"type":"string","example":null,"uniqueKey":"lead.custom_fields.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"lead.custom_fields.oneOf.1","typeLabel":"null"}],"uniqueKey":"lead.custom_fields","typeLabel":"string | null"},"split_percentage_value":{"oneOf":[{"type":"string","example":null,"uniqueKey":"lead.split_percentage_value.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"lead.split_percentage_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"lead.split_percentage_value","typeLabel":"string | null"},"visitor_sub_id":{"oneOf":[{"type":"string","example":null,"uniqueKey":"lead.visitor_sub_id.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"lead.visitor_sub_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"lead.visitor_sub_id","typeLabel":"string | null"}},"uniqueKey":"lead","typeLabel":"object"},"promoter":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the promoter","example":3920164,"uniqueKey":"promoter.id","typeLabel":"integer"},"status":{"type":"string","description":"Status of the promoter","example":"active","uniqueKey":"promoter.status","typeLabel":"string"},"cust_id":{"type":"string","example":"","uniqueKey":"promoter.cust_id","typeLabel":"string"},"email":{"type":"string","description":"Email of the promoter","example":"peluwydo@mailinator.com","uniqueKey":"promoter.email","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"ISO date of when the promoter was created","example":"2022-04-26T15:28:24.800Z","uniqueKey":"promoter.created_at","typeLabel":"string\u003cdate-time>"},"temp_password":{"oneOf":[{"type":"string","description":"Temporary password created for the promoter","example":"xxxxxxxxxx","uniqueKey":"promoter.temp_password.oneOf.0","typeLabel":"string"},{"type":"null","description":"Temporary password created for the promoter","example":"xxxxxxxxxx","uniqueKey":"promoter.temp_password.oneOf.1","typeLabel":"null"}],"uniqueKey":"promoter.temp_password","typeLabel":"string | null"},"default_promotion_id":{"type":"integer","example":4210919,"uniqueKey":"promoter.default_promotion_id","typeLabel":"integer"},"pref":{"type":"string","example":"db1znwe","uniqueKey":"promoter.pref","typeLabel":"string"},"default_ref_id":{"type":"string","description":"Default referral id of the promoter","example":"8yi2epelut","uniqueKey":"promoter.default_ref_id","typeLabel":"string"},"note":{"oneOf":[{"type":"string","description":"A note/description of promoter","example":"This is a note","uniqueKey":"promoter.note.oneOf.0","typeLabel":"string"},{"type":"null","description":"A note/description of promoter","example":"This is a note","uniqueKey":"promoter.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"promoter.note","typeLabel":"string | null"},"w8_form_url":{"oneOf":[{"type":"string","description":"Url of the w8 form","example":null,"uniqueKey":"promoter.w8_form_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Url of the w8 form","example":null,"uniqueKey":"promoter.w8_form_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"promoter.w8_form_url","typeLabel":"string | null"},"w9_form_url":{"oneOf":[{"type":"string","description":"Url of the w9 form","example":null,"uniqueKey":"promoter.w9_form_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Url of the w9 form","example":null,"uniqueKey":"promoter.w9_form_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"promoter.w9_form_url","typeLabel":"string | null"},"parent_promoter_id":{"type":"integer","description":"Parent promoter id","example":577918,"uniqueKey":"promoter.parent_promoter_id","typeLabel":"integer"},"earnings_balance":{"type":"object","description":"Earning balance of the promoter","properties":{"cash":{"type":"integer","example":50744,"uniqueKey":"promoter.earnings_balance.cash","typeLabel":"integer"}},"uniqueKey":"promoter.earnings_balance","typeLabel":"object"},"current_balance":{"type":"object","description":"Current balance of the promoter","properties":{"cash":{"type":"integer","example":20044,"uniqueKey":"promoter.current_balance.cash","typeLabel":"integer"}},"uniqueKey":"promoter.current_balance","typeLabel":"object"},"paid_balance":{"type":"object","description":"Paid balance of the promoter","properties":{"cash":{"type":"integer","example":30700,"uniqueKey":"promoter.paid_balance.cash","typeLabel":"integer"}},"uniqueKey":"promoter.paid_balance","typeLabel":"object"},"auth_token":{"type":"string","description":"Authentication token generated when the promoter was created","example":"xxxxxxxxxxxxxx","uniqueKey":"promoter.auth_token","typeLabel":"string"}},"uniqueKey":"promoter","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":33765409,"type":"signup","amount_cents":123,"reward":"\u003cstring>","lead":{"id":20738339,"state":"cancelled","email":"hello@testmintli.com","uid":null,"customer_since":"2024-09-11T14:22:12.160Z","cancelled_at":"2024-09-11T15:07:46.174Z","plan_name":null,"suspicion":"no_suspicion","username":null,"website":null,"created_at":"2024-09-09T16:22:44.168Z","split_promotion_id":null,"custom_fields":null,"split_percentage_value":null,"visitor_sub_id":null},"promoter":{"id":3920164,"status":"active","cust_id":"","email":"peluwydo@mailinator.com","created_at":"2022-04-26T15:28:24.800Z","temp_password":"xxxxxxxxxx","default_promotion_id":4210919,"pref":"db1znwe","default_ref_id":"8yi2epelut","note":"This is a note","w8_form_url":null,"w9_form_url":null,"parent_promoter_id":577918,"earnings_balance":{"cash":50744},"current_balance":{"cash":20044},"paid_balance":{"cash":30700},"auth_token":"xxxxxxxxxxxxxx"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d878553f-4019-451e-af0e-7187b3ce6b71":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Error. Email and uid can not be blank!","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Error. Email and uid can not be blank!"}}},"exampleType":"generated"}},"exampleType":"generated"},"a445299a-1f0e-4ca6-be40-45e78a64bb71":{"description":"Not Found. The visitor (`tid`) or referral could not be found, or the referral belongs to a promoter who can no longer be credited with signups in that campaign (for example inactive), in which case `message` is `This promotion is blocked or does not allow tracking for this event type.`","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Visitor invalid, not found or you are trying to use the signup tracking test via API which doesn't work on API calls.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Visitor invalid, not found or you are trying to use the signup tracking test via API which doesn't work on API calls."}}},"exampleType":"generated"}},"exampleType":"generated"},"9fdbde3d-5599-4f4b-9216-a5b0e8c7d897":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"transaction_id":{"type":"string","example":"there is already a signup event registered on this lead","uniqueKey":"transaction_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"transaction_id":"there is already a signup event registered on this lead"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2caa02b8-9a52-4447-9157-ef0a0f32335e":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"74884482-9112-44c8-8f60-9908b3c0be80":{"url":"https://firstpromoter.com/api/v1/track"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"X-API-KEY","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"X-API-KEY"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference-v1/tracking-api/openapi-tracking.json"},"subdomain":"firstpromoter","siteName":"FirstPromoter Docs","title":"Tracking leads and sign-ups - FirstPromoter Docs","navMaps":{"firstHrefInVersion":{"v2":{"href":"/introduction","matchLevel":4},"v1":{"href":"/api-reference-v1/tracking-api/leads-and-signups","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T13:53:59.715Z","originalFileLocation":"api-reference-v1/tracking-api/leads-and-signups.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=\"Track a lead or signup from your backend and attribute it to a promoter with the visitor\u0026#x27;s tid or ref_id (legacy v1 API).\">\u003cmeta data-mint-head name=\"application-name\" content=\"FirstPromoter Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/firstpromoter/NHAuOTz7uXRLkEOr/_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/firstpromoter/NHAuOTz7uXRLkEOr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/firstpromoter/NHAuOTz7uXRLkEOr/_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/firstpromoter/NHAuOTz7uXRLkEOr/_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/firstpromoter/NHAuOTz7uXRLkEOr/_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/firstpromoter/NHAuOTz7uXRLkEOr/_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/firstpromoter/NHAuOTz7uXRLkEOr/_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/firstpromoter/NHAuOTz7uXRLkEOr/_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/firstpromoter/NHAuOTz7uXRLkEOr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Tracking leads and sign-ups - FirstPromoter Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Track a lead or signup from your backend and attribute it to a promoter with the visitor\u0026#x27;s tid or ref_id (legacy v1 API).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FirstPromoter Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://firstpromoter.mintlify.site/_mintlify/api/og/v2?division=Tracking\u0026amp;title=Tracking+leads+and+sign-ups\u0026amp;description=Track+a+lead+or+signup+from+your+backend+and+attribute+it+to+a+promoter+with+the+visitor%27s+tid+or+ref_id+%28legacy+v1+API%29.\u0026amp;theme=fff9650e72028c28308bb6bc\u0026amp;signature=ba3fd1047d98235f963d42ab8fa65c206eb1f628166a7070468170abb4a99d3b\">\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=\"Tracking leads and sign-ups - FirstPromoter Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Track a lead or signup from your backend and attribute it to a promoter with the visitor\u0026#x27;s tid or ref_id (legacy v1 API).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://firstpromoter.mintlify.site/_mintlify/api/og/v2?division=Tracking\u0026amp;title=Tracking+leads+and+sign-ups\u0026amp;description=Track+a+lead+or+signup+from+your+backend+and+attribute+it+to+a+promoter+with+the+visitor%27s+tid+or+ref_id+%28legacy+v1+API%29.\u0026amp;theme=fff9650e72028c28308bb6bc\u0026amp;signature=ba3fd1047d98235f963d42ab8fa65c206eb1f628166a7070468170abb4a99d3b\">\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/firstpromoter/NHAuOTz7uXRLkEOr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FirstPromoter Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2497F3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference-v1/tracking-api/leads-and-signups.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.firstpromoter.com/#organization\",\"name\":\"FirstPromoter Docs\",\"url\":\"https://docs.firstpromoter.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/firstpromoter/Qml53iAwCwPGiKRZ/logo/light.svg?fit=max\u0026auto=format\u0026n=Qml53iAwCwPGiKRZ\u0026q=85\u0026s=17d35344b27497f795682da8932295c9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.firstpromoter.com#website\",\"name\":\"FirstPromoter Docs\",\"url\":\"https://docs.firstpromoter.com\",\"publisher\":{\"@id\":\"https://docs.firstpromoter.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups#webpage\",\"url\":\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups\",\"name\":\"Tracking leads and sign-ups\",\"description\":\"Track a lead or signup from your backend and attribute it to a promoter with the visitor's tid or ref_id (legacy v1 API).\",\"dateModified\":\"2026-11-20T13:53:59.715Z\",\"isPartOf\":{\"@id\":\"https://docs.firstpromoter.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"FirstPromoter Docs\",\"item\":\"https://docs.firstpromoter.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tracking leads and sign-ups\",\"item\":\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups#apireference\",\"headline\":\"Tracking leads and sign-ups\",\"name\":\"Tracking leads and sign-ups\",\"description\":\"Track a lead or signup from your backend and attribute it to a promoter with the visitor's tid or ref_id (legacy v1 API).\",\"url\":\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups\",\"mainEntityOfPage\":{\"@id\":\"https://docs.firstpromoter.com/api-reference-v1/tracking-api/leads-and-signups#webpage\"},\"dateModified\":\"2026-11-20T13:53:59.715Z\",\"publisher\":{\"@id\":\"https://docs.firstpromoter.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.firstpromoter.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FirstPromoter Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FirstPromoter Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference-v1/tracking-api/leads-and-signups.md","siteName":"FirstPromoter Docs","nav":{"global":null,"versions":[{"version":"v2","pages":[{"title":"v2","href":"/introduction"}]},{"version":"v1","anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","boost":0.5,"pages":[{"title":"Introduction","href":"/api-reference-v1/introduction"},{"title":"Authentication","description":"How to authenticate your API","href":"/api-reference-v1/authentication"}]},{"group":"Tracking","boost":0.5,"pages":[{"title":"Tracking leads and sign-ups","openapi":"openapi-tracking POST /signup","href":"/api-reference-v1/tracking-api/leads-and-signups"},{"title":"Tracking subscribers","description":"Attribute a newsletter or free-plan subscriber to a promoter before they sign up for a paid plan (legacy v1 API).","openapi":"openapi-tracking POST /subscriber","href":"/api-reference-v1/tracking-api/subscriber"},{"title":"Tracking sales and commissions","openapi":"openapi-tracking POST /sale","href":"/api-reference-v1/tracking-api/sales"},{"title":"Tracking refunds and negative commissions","openapi":"openapi-tracking POST /refund","href":"/api-reference-v1/tracking-api/refund"},{"title":"Tracking cancellations","openapi":"openapi-tracking POST /cancellation","href":"/api-reference-v1/tracking-api/cancellation"}]},{"group":"Leads","boost":0.5,"pages":[{"title":"Modify existing lead/customer","openapi":"openapi-leads PUT /update","href":"/api-reference-v1/leads-api/update"},{"title":"List leads/customers","openapi":"openapi-leads GET /list","href":"/api-reference-v1/leads-api/list"},{"title":"Show leads and customers details","openapi":"openapi-leads GET /show","href":"/api-reference-v1/leads-api/show"},{"title":"Delete lead/customer","openapi":"openapi-leads DELETE /delete","href":"/api-reference-v1/leads-api/delete"}]},{"group":"Promoters","boost":0.5,"pages":[{"title":"Create a new promoter","openapi":"openapi-promoters POST /create","href":"/api-reference-v1/promoters-api/create"},{"title":"Modify existing promoter","openapi":"openapi-promoters PUT /update","href":"/api-reference-v1/promoters-api/update"},{"title":"List promoters","openapi":"openapi-promoters GET /list","href":"/api-reference-v1/promoters-api/list"},{"title":"Show promoter details and balance","openapi":"openapi-promoters GET /show","href":"/api-reference-v1/promoters-api/show-details"},{"title":"Move/switch a promoter from one campaign to another","openapi":"openapi-promoters POST /move_to_campaign","href":"/api-reference-v1/promoters-api/move-to-campaign"},{"title":"Add a promoter to a campaign","openapi":"openapi-promoters POST /add_to_campaign","href":"/api-reference-v1/promoters-api/add-to-campaign"},{"title":"Reset promoter's authentication token","openapi":"openapi-promoters PUT /refresh_token","href":"/api-reference-v1/promoters-api/refresh-token"},{"title":"Delete a promoter","openapi":"openapi-promoters DELETE /delete","href":"/api-reference-v1/promoters-api/delete"}]},{"group":"Rewards","boost":0.5,"pages":[{"title":"Create new reward","openapi":"openapi-rewards POST /create","href":"/api-reference-v1/rewards-api/create"},{"title":"List rewards and commissions","openapi":"openapi-rewards GET /list","href":"/api-reference-v1/rewards-api/list"},{"title":"Update a reward or commission","openapi":"openapi-rewards PUT /update","href":"/api-reference-v1/rewards-api/update"}]},{"group":"Payouts","boost":0.5,"pages":[{"title":"List payouts","openapi":"openapi-payouts GET /list","href":"/api-reference-v1/payouts-api/list"},{"title":"Create a new payout","openapi":"openapi-payouts POST /create","href":"/api-reference-v1/payouts-api/create"},{"title":"Change payouts status","openapi":"openapi-payouts PUT /update","href":"/api-reference-v1/payouts-api/update"}]},{"group":"Reports","boost":0.5,"pages":[{"title":"Overview reports","openapi":"openapi-reports GET /overview","href":"/api-reference-v1/reports-api/overview"},{"title":"Campaign reports","openapi":"openapi-reports GET /campaigns","href":"/api-reference-v1/reports-api/campaign"},{"title":"Promoter reports","openapi":"openapi-reports GET /promoters","href":"/api-reference-v1/reports-api/promoter"}]}]}]},{"anchor":"API Reference","icon":"webhook","href":"https://docs.firstpromoter.com/api-reference-v1/introduction"},{"anchor":"Help Center","icon":"square-question","href":"https://help.firstpromoter.com/en/"}]}]},"basePath":"","title":"Tracking leads and sign-ups - FirstPromoter Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}