Skip to main content

API reference

POST https://app.advision360.de/api/public/leads

Creates a lead on the lead board of the company that owns the lead key, or updates an existing lead (see Duplicate leads).

Authentication: X-API-Key header or _key field (see Authentication).

Content-Type: application/json, application/x-www-form-urlencoded or multipart/form-data.

Fields​

FieldTypeRequiredDescription
firstNamestringyesFirst name, max 100 characters.
lastNamestringyesLast name, max 100 characters.
emailstringemail or phoneValid email address, max 255 characters.
phonestringemail or phonePhone number, max 50 characters.
sourcestringnoOrigin of the lead, see allowed values. Unknown values are ignored.
notesstringnoFree text stored on the lead.
additionalFieldsobjectnoCustom key-value pairs. In forms as additionalFields.<name>. See Custom fields.
_meta.urlstringnoAddress of the page the lead came from. In JSON as "_meta": { "url": "…" }. The JavaScript SDK sets it automatically.
_keystringwithout headerLead key, if no X-API-Key header is set.
_redirectstringnoRedirect target after success. Allowed domains only, see Redirect.
_testbooleannotrue, "true" or "1" marks the lead as a test lead.

At least one of email or phone must be provided.

Allowed values for source​

website, referral, phone, event, social_media, advertisement, partner, landing_page, registration, other

Responses​

The lead was created or updated. The body is an empty JSON object.

{}

Error codes​

StatusMeaningCause
400Bad RequestRequired fields are missing or values are invalid.
401UnauthorizedThe lead key is missing, unknown or deactivated.
403ForbiddenThe company's license does not include the Leads module.
429Too Many RequestsThe key's rate limit is reached.
500Server ErrorUnexpected error. Retry later, contact support if it persists.

Rate limit​

Each lead key allows 100 requests per hour, counted per fixed one-hour window. Once it is used up, the API responds with 429 and a Retry-After header.

If you need more requests, spread the traffic over several keys, e.g. one per website.