π Create a New Lead Using API
API usage example for creating a Lead with Agency Handy API
Prerequisites
Step 1: Get Client Role ID
π Endpoint:
π οΈ Set Headers:
x-api-key: <API_KEY>
companyid: <COMPANY_ID>π₯ Response Example:
{
"roles": [
{
"_id": "6525994184e9ddd798534535",
"role": {
"_id": "6525994184e9ddd79853451e",
"responsibility": "",
"name": "client"
},
"company": "6525994184e9ddd79853450e",
"createdAt": "2023-10-10T18:34:41.567Z",
"updatedAt": "2024-10-01T07:28:48.340Z",
"__v": 0,
"type": "company"
}
]
}π What to Do:
Step 2: Create a New Lead
π Endpoint:
π οΈ Set Headers:
π¦ Request Body:
β
Success Response:
β Important Tips:
Last updated