Get conversation item
curl --request GET \
--url https://api.withallo.com/v2/api/conversations/items/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.withallo.com/v2/api/conversations/items/{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.withallo.com/v2/api/conversations/items/{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.withallo.com/v2/api/conversations/items/{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.withallo.com/v2/api/conversations/items/{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.withallo.com/v2/api/conversations/items/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withallo.com/v2/api/conversations/items/{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{
"data": {
"id": "cll-abc123",
"allo_number": "+14155550100",
"contact_number": "+14155551234",
"contacts": [
{
"id": "cnt-abc123",
"name": "Sarah Johnson",
"company": {
"id": "com-xyz789",
"name": "Acme Corp"
},
"deals": [
{
"id": "dea-def456",
"name": "Enterprise Plan"
}
]
}
],
"user": {
"id": "usr-abc123",
"name": "John",
"email": "[email protected]"
},
"date": "2023-11-07T05:31:56Z",
"duration": 123,
"recording_url": "<string>",
"summary": "<string>",
"tags": [
"<string>"
],
"transcript": [
{
"time": "2023-11-07T05:31:56Z",
"text": "<string>"
}
],
"content": "<string>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}Conversations
Obtenir un élément de conversation
Returns a single call or SMS message by its ID.
GET
/
v2
/
api
/
conversations
/
items
/
{id}
Get conversation item
curl --request GET \
--url https://api.withallo.com/v2/api/conversations/items/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.withallo.com/v2/api/conversations/items/{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.withallo.com/v2/api/conversations/items/{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.withallo.com/v2/api/conversations/items/{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.withallo.com/v2/api/conversations/items/{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.withallo.com/v2/api/conversations/items/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withallo.com/v2/api/conversations/items/{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{
"data": {
"id": "cll-abc123",
"allo_number": "+14155550100",
"contact_number": "+14155551234",
"contacts": [
{
"id": "cnt-abc123",
"name": "Sarah Johnson",
"company": {
"id": "com-xyz789",
"name": "Acme Corp"
},
"deals": [
{
"id": "dea-def456",
"name": "Enterprise Plan"
}
]
}
],
"user": {
"id": "usr-abc123",
"name": "John",
"email": "[email protected]"
},
"date": "2023-11-07T05:31:56Z",
"duration": 123,
"recording_url": "<string>",
"summary": "<string>",
"tags": [
"<string>"
],
"transcript": [
{
"time": "2023-11-07T05:31:56Z",
"text": "<string>"
}
],
"content": "<string>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"retry_after_seconds": 123
}
}Scope requis :
CONVERSATIONS_READFormat des ID d’éléments
- Les ID d’appels commencent par
cll-(ex.cll-abc123) - Les ID de messages commencent par
msg-(ex.msg-def456)
400 avec le code INVALID_ITEM_ID.
Notes sur les champs
| Champ | Null quand |
|---|---|
summary | Éléments SMS, ou appels dont le résumé IA n’est pas encore disponible |
duration | Éléments SMS (s’applique uniquement aux appels) |
result | Éléments SMS (s’applique uniquement aux appels) |
recording_url | Enregistrement désactivé, appel sans réponse, ou éléments SMS |
transcript | Non demandé via extend=transcript, ou éléments SMS |
content | Éléments d’appel (s’applique uniquement aux SMS) |
status | Éléments d’appel (s’applique uniquement aux SMS) |
Paramètre extend
| Valeur | Effet |
|---|---|
transcript | Inclure les transcriptions complètes des appels |
400 avec le code UNSUPPORTED_EXTEND_VALUE.Autorisations
Paramètres de chemin
Item ID (cll-* for calls, msg-* for messages)
Exemple:
"cll-abc123"
Paramètres de requête
Comma-separated optional fields. Supported: transcript
Exemple:
"transcript"
Réponse
Conversation item
Show child attributes
Show child attributes
Cette page vous a-t-elle été utile ?
⌘I