curl --request GET \
--url https://api.telli.com/v1/get-contact/{contactId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.telli.com/v1/get-contact/{contactId}"
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/{contactId}', 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/{contactId}",
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/{contactId}"
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/{contactId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telli.com/v1/get-contact/{contactId}")
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",
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>",
"in_call_since": "2023-11-07T05:31:56Z",
"reached_at": "2023-11-07T05:31:56Z",
"contact_details": {},
"call_attempts": 123,
"next_call_at": "2023-11-07T05:31:56Z",
"email": "[email protected]",
"timezone": "<string>",
"salutation": "<string>",
"status": "reached",
"auto_dialer_status": "in_dialer"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Kontakt abrufen
Retrieves detailed contact information including current call status and history
curl --request GET \
--url https://api.telli.com/v1/get-contact/{contactId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.telli.com/v1/get-contact/{contactId}"
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/{contactId}', 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/{contactId}",
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/{contactId}"
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/{contactId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telli.com/v1/get-contact/{contactId}")
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",
"first_name": "<string>",
"last_name": "<string>",
"phone_number": "<string>",
"in_call_since": "2023-11-07T05:31:56Z",
"reached_at": "2023-11-07T05:31:56Z",
"contact_details": {},
"call_attempts": 123,
"next_call_at": "2023-11-07T05:31:56Z",
"email": "[email protected]",
"timezone": "<string>",
"salutation": "<string>",
"status": "reached",
"auto_dialer_status": "in_dialer"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Autorisierungen
API key must be provided as: Bearer <api_key>
Pfadparameter
The telli contact ID
Antwort
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
First name of the contact
Last name of the contact
Contact's phone number in E.164 format
Timestamp of when current call started, null if not in call
When the contact was last successfully reached
Custom variables passed to the AI agent
Number of call attempts made to this contact
When the next call is scheduled, null if no call scheduled
Contact's email address
IANA timezone identifier (e.g. Europe/Berlin)
Formal title or greeting (e.g. 'Mr.', 'Ms.', 'Herr', 'Frau')
Current status of the contact
reached, not_reached, in_progress Whether the contact is currently enrolled in the auto dialer. Matches the status field of the auto_dialer_status_changed webhook.
in_dialer, not_in_dialer War diese Seite hilfreich?