Voice Machine Detection API - Get Record Results

Endpoint: GET https://flows.s1.e9lab.com/webhook/{{webhook_id}}

Description:

Retrieve the results of a previous recording analysis by providing one of the following parameters: unique_id, lead_id, or contact_id.

Headers:

Query Parameters:

Success Response Example (JSON):

[
  {
    "unique_id": "4526dd7f50",
    "lead_id": "29471232",
    "contact_id": "45491478",
    "phone_number": "34123456789",
    "is_answering_machine": 1,
    "lang": "es"
  },
  {
    "unique_id": "f9602fc735",
    "lead_id": "29471232",
    "contact_id": "45491478",
    "phone_number": "34123456789",
    "is_answering_machine": 1,
    "lang": "es"
  }
]
    

Error Responses:

Example Requests:

cURL (Search by unique_id):

curl -X GET "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a?unique_id=f5863a0b36" \
-H "username: {Your_Username}" \
-H "authkey: {Your_Auth_Key}" \
-H "Accept: application/json"
        

cURL (Search by contact_id):

curl -X GET "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a?contact_id=45491478" \
-H "username: {Your_Username}" \
-H "authkey: {Your_Auth_Key}" \
-H "Accept: application/json"
        

cURL (Search by lead_id):

curl -X GET "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a?lead_id=43438" \
-H "username: {Your_Username}" \
-H "authkey: {Your_Auth_Key}" \
-H "Accept: application/json"
        

Python (Search by unique_id):

import requests

url = "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a"
params = {'unique_id': 'f5863a0b36'}
headers = {
    'username': '{Your_Username}',
    'authkey': '{Your_Auth_Key}',
    'Accept': 'application/json'
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
        

Python (Search by contact_id):

import requests

url = "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a"
params = {'contact_id': '45491478'}
headers = {
    'username': '{Your_Username}',
    'authkey': '{Your_Auth_Key}',
    'Accept': 'application/json'
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
        

Python (Search by lead_id):

import requests

url = "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a"
params = {'lead_id': '43438'}
headers = {
    'username': '{Your_Username}',
    'authkey': '{Your_Auth_Key}',
    'Accept': 'application/json'
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
        

PHP (Search by unique_id):

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a?unique_id=f5863a0b36");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    "username: {Your_Username}",
    "authkey: {Your_Auth_Key}",
    "Accept: application/json"
));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
        

PHP (Search by contact_id):

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a?contact_id=45491478");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    "username: {Your_Username}",
    "authkey: {Your_Auth_Key}",
    "Accept: application/json"
));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
        

PHP (Search by lead_id):

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://flows.s1.e9lab.com/webhook/04597505-9927-412d-a06f-49bbec6c084a?lead_id=43438");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    "username: {Your_Username}",
    "authkey: {Your_Auth_Key}",
    "Accept: application/json"
));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>