Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titlePOST request - Lead Data
https://[enterprise].cvtr.io/webhook/campaign/[CampaignID]/links?apikey=[campaignAPIkey]&campaignLinkId=[linkid]

Example Lead Post Request with Publisher ID

Additionally if you want to pass the publisher id with the lead you can post as below (the publisher ID can be obtained from the platform by going to the publisher section https://[enterprise].cvtr.io/publisher/list).

...

Code Block
titleGET response - Form Fields
{
    "code": 201,
    "message": "Lead was created successfully",
    "data": 55907
}

Error Responses

Error codeError BodyDescription
500{"code": 500, "message": ""}Internal server error.
404The server returned a "404 Not Found"Campaign ID Incorrect or incorrect URL
404{"code": 404,"message": "Publisher not found"}Publisher ID incorrect
400{"code": 400,"message": "Validation failed","data": [{"message": "This form should not contain extra fields."},{"fieldName": "form[lastName]","message": ""}]}The form field(s) submitted are incorrect and do not match the correct form mapping
400{"code": 400,"message": "Validation failed","data": [{"message": "This form should not contain extra fields."}]}Some form field(s) submitted in your request do not exist on the form
401{"code": 401,"message": "Access denied."}Access denied. Incorrect API key