cURL
curl --request GET 'https://api.brightalk.ai/calls?limit=20' \
--header "Authorization: Bearer $BRIGHTALK_API_KEY" \
--header "Brightalk-Version: 2026-07-16"const response = await fetch("https://api.brightalk.ai/calls?limit=20", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BRIGHTALK_API_KEY}`,
"Brightalk-Version": "2026-07-16",
},
});
console.log(response.status, await response.json());import os
import requests
response = requests.request(
"GET",
"https://api.brightalk.ai/calls?limit=20",
headers={
"Authorization": f"Bearer {os.environ['BRIGHTALK_API_KEY']}",
"Brightalk-Version": "2026-07-16",
},
)
print(response.status_code, response.json()){
"data": [
{
"id": "11111111-1111-4111-8111-111111111111",
"status": "queued",
"answer_status": "answered",
"contact_id": "con_demo_001",
"agent_id": "agt_demo_001",
"queued_at": "2026-07-20T01:00:00Z",
"created_at": "2026-07-20T01:00:00Z",
"updated_at": "2026-07-20T01:00:00Z",
"batch_id": "bat_demo_001",
"automation_run_id": "run_demo_001",
"outcome": "qualified",
"outcome_reason": "Requested a follow-up.",
"summary": "Customer requested a follow-up next week.",
"duration_seconds": 92,
"dialing_at": "2026-07-20T01:00:00Z",
"connected_at": "2026-07-20T01:00:00Z",
"ended_at": "2026-07-20T01:00:00Z",
"cancel_requested_at": "2026-07-20T01:00:00Z",
"cancelled_at": "2026-07-20T01:00:00Z"
}
],
"next_cursor": "<string>"
}Calls
列出 API 可見的通話
傳回直接通話,以及由公開 API 建立的批次或自動化執行所產生的子通話。生命週期狀態與接聽分類彼此獨立。結果採用由新到舊的游標分頁。每個回應都包含 Brightalk-Version 與 X-Request-Id;受到速率限制的回應還會提供實際套用之配額群組的計數器。
GET
/
calls
cURL
curl --request GET 'https://api.brightalk.ai/calls?limit=20' \
--header "Authorization: Bearer $BRIGHTALK_API_KEY" \
--header "Brightalk-Version: 2026-07-16"const response = await fetch("https://api.brightalk.ai/calls?limit=20", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BRIGHTALK_API_KEY}`,
"Brightalk-Version": "2026-07-16",
},
});
console.log(response.status, await response.json());import os
import requests
response = requests.request(
"GET",
"https://api.brightalk.ai/calls?limit=20",
headers={
"Authorization": f"Bearer {os.environ['BRIGHTALK_API_KEY']}",
"Brightalk-Version": "2026-07-16",
},
)
print(response.status_code, response.json()){
"data": [
{
"id": "11111111-1111-4111-8111-111111111111",
"status": "queued",
"answer_status": "answered",
"contact_id": "con_demo_001",
"agent_id": "agt_demo_001",
"queued_at": "2026-07-20T01:00:00Z",
"created_at": "2026-07-20T01:00:00Z",
"updated_at": "2026-07-20T01:00:00Z",
"batch_id": "bat_demo_001",
"automation_run_id": "run_demo_001",
"outcome": "qualified",
"outcome_reason": "Requested a follow-up.",
"summary": "Customer requested a follow-up next week.",
"duration_seconds": 92,
"dialing_at": "2026-07-20T01:00:00Z",
"connected_at": "2026-07-20T01:00:00Z",
"ended_at": "2026-07-20T01:00:00Z",
"cancel_requested_at": "2026-07-20T01:00:00Z",
"cancelled_at": "2026-07-20T01:00:00Z"
}
],
"next_cursor": "<string>"
}授權
Use a server-side Brightalk API key in the Authorization header.
標頭
選擇以日期為基礎的 API 版本。省略時會使用組織固定的預設版本。
Allowed value:
"2026-07-16"由呼叫端產生且符合 [A-Za-z0-9._:-]{1,64} 的關聯值。無效值會被取代。
Maximum string length:
64Pattern:
^[A-Za-z0-9._:-]{1,64}$查詢參數
要傳回的資源數量。預設為 20,上限為 100。
必填範圍:
1 <= x <= 100前一頁傳回的不透明游標。
Required string length:
1 - 2048可用選項:
queued, dialing, in_progress, completed, failed, cancelled 不透明的資源識別碼。
Required string length:
1 - 255範例:
"con_demo_001"
不透明的資源識別碼。
Required string length:
1 - 255範例:
"bat_demo_001"
不透明的資源識別碼。
Required string length:
1 - 255範例:
"run_demo_001"