Get a lead submission token

Step 1 of 2 for submitting a lead. Send the answers you are about to submit in lead_submission. The response contains a token, json.encrypted_data, that is valid only for exactly those answers. Then call POST /api/v3/partners/{partner_id}/lead_forms/create with the same lead_submission, unchanged (same keys, order and values), and the token in authenticity_tok. The token does not expire and is not tied to a listing. The HTTP status is 201; the status field in the body is always 200.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Listing ID or slug. This step does not look up the listing.

Body Params

Get a lead submission token

lead_submission
object
required

The lead's answers: a JSON object that maps each lead form field ID (lead_fields[].id in the lead form) to the answer, for example {"5960": "Jane", "5961": "Doe", "5962": "[email protected]", "5963": "Acme"}. Send it as an object in a JSON request body, or as a JSON-encoded string.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json