Endpoint: POST https://flows.s1.e9lab.com/webhook/{{webhook_id}}
Submit a new call recording (via binary data or file URL) for detecting if it contains an answering machine.
username
: Your API username (required)authkey
: Your API authentication key (required)Content-Type
: multipart/form-data
(required)audio_file_url
: URL to the audio file (optional if sending binary data)data
: Binary audio data (optional if using audio_file_url
)lang
: Language of the recording (required)phone_number
: Phone number associated with the recordinglead_id
: Lead identifiercontact_id
: Contact identifiercall_datetime
: Datetime of the call{
"status": "Processing",
"unique_id": "f5863a0b36"
}
{"status": "Check Your Credentials"}
audio_file_url
:curl -X POST "https://flows.s1.e9lab.com/webhook/07767be7-a7f8-43f7-a2bd-94bf412c9dd4" \
-H "username: {Your_Username}" \
-H "authkey: {Your_Auth_Key}" \
-F "audio_file_url=https://example.com/call_audio.mp3" \
-F "lang=es" \
-F "phone_number=34123456789"
import requests
url = "https://flows.s1.e9lab.com/webhook/07767be7-a7f8-43f7-a2bd-94bf412c9dd4"
headers = {
'username': '{Your_Username}',
'authkey': '{Your_Auth_Key}'
}
files = {
'audio_file_url': ('', 'https://example.com/call_audio.mp3'),
'lang': ('', 'es'),
'phone_number': ('', '34123456789')
}
response = requests.post(url, headers=headers, files=files)
print(response.json())
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://flows.s1.e9lab.com/webhook/07767be7-a7f8-43f7-a2bd-94bf412c9dd4");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
"audio_file_url" => "https://example.com/call_audio.mp3",
"lang" => "es",
"phone_number" => "34123456789"
));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"username: {Your_Username}",
"authkey: {Your_Auth_Key}"
));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
curl -X POST "https://flows.s1.e9lab.com/webhook/07767be7-a7f8-43f7-a2bd-94bf412c9dd4" \
-H "username: {Your_Username}" \
-H "authkey: {Your_Auth_Key}" \
-F "data=@/path/to/audio_file.mp3" \
-F "lang=es"
import requests
url = "https://flows.s1.e9lab.com/webhook/07767be7-a7f8-43f7-a2bd-94bf412c9dd4"
headers = {
'username': '{Your_Username}',
'authkey': '{Your_Auth_Key}'
}
files = {
'data': open('/path/to/audio_file.mp3', 'rb'),
'lang': ('', 'es')
}
response = requests.post(url, headers=headers, files=files)
print(response.json())
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://flows.s1.e9lab.com/webhook/07767be7-a7f8-43f7-a2bd-94bf412c9dd4");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
"data" => new CURLFile('/path/to/audio_file.mp3'),
"lang" => "es"
));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"username: {Your_Username}",
"authkey: {Your_Auth_Key}"
));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>