Get Contact by External ID
curl --request GET \
--url https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_contact_id": "<string>",
"external_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"in_call_since": "2023-11-07T05:31:56Z",
"reached_at": "2023-11-07T05:31:56Z",
"call_attempts": 123,
"next_call_at": "2023-11-07T05:31:56Z",
"auto_dialer_status": "in_dialer"
}Veraltete Kontakt-Endpunkte
Kontakt nach externer ID abrufen
Retrieves detailed contact information including current call status and history using external contact id as an identifier
GET
/
v1
/
get-contact-by-external-id
/
{external_contact_id}
Get Contact by External ID
curl --request GET \
--url https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telli.com/v1/get-contact-by-external-id/{external_contact_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_contact_id": "<string>",
"external_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"in_call_since": "2023-11-07T05:31:56Z",
"reached_at": "2023-11-07T05:31:56Z",
"call_attempts": 123,
"next_call_at": "2023-11-07T05:31:56Z",
"auto_dialer_status": "in_dialer"
}Dieser Endpunkt ist veraltet. Verwende stattdessen Kontakt nach externer ID abrufen. Weitere Informationen findest du in der Migrationsanleitung.
Autorisierungen
API key must be provided as: Bearer <api_key>
Pfadparameter
The telli contact ID
Antwort
200 - application/json
Contact details retrieved successfully
The telli contact ID
Your unique internal identifier for the contact
External URL linking to the contact in your CRM or external system
When the contact was created
Timestamp of when current call started, null if not in call
When the contact was last successfully reached
Number of call attempts made to this contact
When the next call is scheduled, null if no call scheduled
Whether the contact is currently enrolled in the auto dialer. Matches the status field of the auto_dialer_status_changed webhook.
Verfügbare Optionen:
in_dialer, not_in_dialer War diese Seite hilfreich?