...
Code Block |
---|
language | js |
---|
title | POST 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 |
---|
title | GET response - Form Fields |
---|
|
{
"code": 201,
"message": "Lead was created successfully",
"data": 55907
} |
Error Responses
Error code | Error Body | Description |
---|
500 | {"code": 500, "message": ""} | Internal server error. |
404 | The 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 |