Webhooks
Create Lead and Call
API Reference
Endpoints
- Actions
- Agents
- Call Now
- Calls
- Campaigns
- Chat
- Chat Widget
- Knowledge Base
- Dispositions
- Lead Lists
- Leads
- Mentions
- Phone Numbers
- Reports
- Roles
- Scripts
- Voices
- Webhooks
Webhooks
Create Lead and Call
Create a new lead if it doesn’t exist and mark it for immediate calling
POST
/
v1
/
webhooks
/
create-and-call
curl --request POST \
--url https://api.eqho.ai/v1/webhooks/create-and-call \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"phone_number": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"lead_list_id": "<string>",
"extra_data": {},
"recall_threshold_in_seconds": 123,
"timezone": "<string>"
}'
{
"created_at": "2021-08-25T00:00:00+00:00",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Smith",
"phone": "+18015551831",
"phone_extension": "123"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.eqho.ai/v1/webhooks/create-and-call \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"phone_number": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"lead_list_id": "<string>",
"extra_data": {},
"recall_threshold_in_seconds": 123,
"timezone": "<string>"
}'
{
"created_at": "2021-08-25T00:00:00+00:00",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Smith",
"phone": "+18015551831",
"phone_extension": "123"
}