List and update leads through authenticated API methods.
curl --request POST \ --url https://bettersalespro.com/admin/api/leads \ --data 'token=YOUR_TOKEN'
Overview
Lead methods live on the partner API controller and require a valid staff token.
List leads
POST/admin/api/leads
Returns leads available to the authenticated account.
tokenstringrequired
Staff API token from login.
Update lead
POST/admin/api/updateLead
Updates an existing lead for the authenticated staff context.
Parameters
In addition to token, update methods accept lead fields posted by the client application. Always validate field names against your account configuration and CRM custom fields.
Errors
- Missing/invalid token →
session_expired - Permission failures → access denied responses on protected methods
See also Contacts and Webhooks.
Was this page helpful?