Call Now
curl --request POST \
--url https://api.eqho.ai/v1/webhooks/call-now \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'x-org-id: <api-key>' \
--data '
{
"phone_number": "+123456xxxx",
"first_name": "John",
"last_name": "Doe",
"lead_list_id": "60c72b2f9b1e8d001c8e115b",
"email": "[email protected]",
"extra_data": {
"source": "web"
},
"recall_threshold_in_seconds": 123,
"timezone": "US/Mountain"
}
'import requests
url = "https://api.eqho.ai/v1/webhooks/call-now"
payload = {
"phone_number": "+123456xxxx",
"first_name": "John",
"last_name": "Doe",
"lead_list_id": "60c72b2f9b1e8d001c8e115b",
"email": "[email protected]",
"extra_data": { "source": "web" },
"recall_threshold_in_seconds": 123,
"timezone": "US/Mountain"
}
headers = {
"X-API-KEY": "<api-key>",
"x-org-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'x-org-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
phone_number: '+123456xxxx',
first_name: 'John',
last_name: 'Doe',
lead_list_id: '60c72b2f9b1e8d001c8e115b',
email: '[email protected]',
extra_data: {source: 'web'},
recall_threshold_in_seconds: 123,
timezone: 'US/Mountain'
})
};
fetch('https://api.eqho.ai/v1/webhooks/call-now', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eqho.ai/v1/webhooks/call-now"
payload := strings.NewReader("{\n \"phone_number\": \"+123456xxxx\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"lead_list_id\": \"60c72b2f9b1e8d001c8e115b\",\n \"email\": \"[email protected]\",\n \"extra_data\": {\n \"source\": \"web\"\n },\n \"recall_threshold_in_seconds\": 123,\n \"timezone\": \"US/Mountain\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("x-org-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"created_at": "2021-08-25T00:00:00+00:00",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Smith",
"phone": "+18015551831",
"phone_extension": "123"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Webhooks
Call Now
Create or update a lead and mark it for immediate calling
POST
/
v1
/
webhooks
/
call-now
Call Now
curl --request POST \
--url https://api.eqho.ai/v1/webhooks/call-now \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'x-org-id: <api-key>' \
--data '
{
"phone_number": "+123456xxxx",
"first_name": "John",
"last_name": "Doe",
"lead_list_id": "60c72b2f9b1e8d001c8e115b",
"email": "[email protected]",
"extra_data": {
"source": "web"
},
"recall_threshold_in_seconds": 123,
"timezone": "US/Mountain"
}
'import requests
url = "https://api.eqho.ai/v1/webhooks/call-now"
payload = {
"phone_number": "+123456xxxx",
"first_name": "John",
"last_name": "Doe",
"lead_list_id": "60c72b2f9b1e8d001c8e115b",
"email": "[email protected]",
"extra_data": { "source": "web" },
"recall_threshold_in_seconds": 123,
"timezone": "US/Mountain"
}
headers = {
"X-API-KEY": "<api-key>",
"x-org-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'x-org-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
phone_number: '+123456xxxx',
first_name: 'John',
last_name: 'Doe',
lead_list_id: '60c72b2f9b1e8d001c8e115b',
email: '[email protected]',
extra_data: {source: 'web'},
recall_threshold_in_seconds: 123,
timezone: 'US/Mountain'
})
};
fetch('https://api.eqho.ai/v1/webhooks/call-now', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eqho.ai/v1/webhooks/call-now"
payload := strings.NewReader("{\n \"phone_number\": \"+123456xxxx\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"lead_list_id\": \"60c72b2f9b1e8d001c8e115b\",\n \"email\": \"[email protected]\",\n \"extra_data\": {\n \"source\": \"web\"\n },\n \"recall_threshold_in_seconds\": 123,\n \"timezone\": \"US/Mountain\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("x-org-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"created_at": "2021-08-25T00:00:00+00:00",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Smith",
"phone": "+18015551831",
"phone_extension": "123"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your API key for authentication.
Org impersonation via x-org-id. Superadmins may impersonate any org; admins may impersonate their direct sub-organizations. Enter the target organization ID to act as that org.
Body
application/json
Phone number in E.164 format
Example:
"+123456xxxx"
First name of the lead
Example:
"John"
Last name of the lead
Example:
"Doe"
ID of the lead list to which this lead belongs
Example:
"60c72b2f9b1e8d001c8e115b"
Email address of the lead
Example:
Available options:
web_voice, telephony, sms, email, chatbot, api_text, chat_app, softphone Custom fields for the lead, can be used to store additional information
Example:
{ "source": "web" }
Lead's timezone, must be a valid IANA time zone identifier.
Example:
"US/Mountain"
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?