Create a new lead

You can create new lead.

 

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization

 

Request Body Parameter
Attribute Type Required Description
company_name string Yes The name of the company
contacts array Yes An array containing Contact id's

Example Request & Response


$ curl https://api.custerem.com/<org_id>/leads/ \
-X POST \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \
-d '{
    "company_name": "Custerem",
    "contacts": [3]
}'

 

201 Created

{
    "company_name": "Custerem",
    "contacts": [
        3
    ]
}

 

400 Bad Request

{
    "company_name": [
        "This field may not be blank."
    ],
    "contacts": [
        "This list may not be empty."
    ]
}