通話の一覧
curl --request GET \
--url https://api.ai-call.co/calls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ai-call.co/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ai-call.co/calls', 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.ai-call.co/calls",
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: Bearer <token>"
],
]);
$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.ai-call.co/calls"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ai-call.co/calls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ai-call.co/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"direction": "inbound",
"status": "<string>",
"result": "<string>",
"duration_seconds": 123,
"from": "<string>",
"to": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"purpose": "<string>",
"contact": {
"id": "<string>",
"name": "<string>",
"company": "<string>",
"email": "<string>"
},
"variables": {},
"metadata": {},
"cost_yen": 123,
"failure_reason": "<string>",
"hangup_cause": "<string>",
"transfer": {
"status": "<string>",
"target_name": "<string>"
},
"do_not_call_requested": true,
"placed_via": "<string>",
"transcript": [
{
"role": "ai",
"text": "<string>",
"at": "2023-11-07T05:31:56Z"
}
]
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"code": "do_not_call",
"message": "この番号は架電しない設定です。"
}
}{
"error": {
"code": "do_not_call",
"message": "この番号は架電しない設定です。"
}
}{
"error": {
"code": "do_not_call",
"message": "この番号は架電しない設定です。"
}
}{
"error": {
"code": "do_not_call",
"message": "この番号は架電しない設定です。"
}
}通話
通話の一覧
通話を新しい順に返します。次のページは next_cursor を cursor に渡して取得します。
GET
/
calls
通話の一覧
curl --request GET \
--url https://api.ai-call.co/calls \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ai-call.co/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ai-call.co/calls', 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.ai-call.co/calls",
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: Bearer <token>"
],
]);
$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.ai-call.co/calls"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ai-call.co/calls")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ai-call.co/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"direction": "inbound",
"status": "<string>",
"result": "<string>",
"duration_seconds": 123,
"from": "<string>",
"to": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"purpose": "<string>",
"contact": {
"id": "<string>",
"name": "<string>",
"company": "<string>",
"email": "<string>"
},
"variables": {},
"metadata": {},
"cost_yen": 123,
"failure_reason": "<string>",
"hangup_cause": "<string>",
"transfer": {
"status": "<string>",
"target_name": "<string>"
},
"do_not_call_requested": true,
"placed_via": "<string>",
"transcript": [
{
"role": "ai",
"text": "<string>",
"at": "2023-11-07T05:31:56Z"
}
]
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"code": "do_not_call",
"message": "この番号は架電しない設定です。"
}
}{
"error": {
"code": "do_not_call",
"message": "この番号は架電しない設定です。"
}
}{
"error": {
"code": "do_not_call",
"message": "この番号は架電しない設定です。"
}
}{
"error": {
"code": "do_not_call",
"message": "この番号は架電しない設定です。"
}
}Authorizations
管理画面「設定 → API」で作成したAPIキー(aic_sk_…)。
Query Parameters
1ページの件数(1〜100)
Required range:
1 <= x <= 100前の応答の next_cursor
このAIエージェントの通話だけ
inbound(受電)か outbound(架電)
Available options:
inbound, outbound 結果で絞り込む(例:completed、no_answer)
この日時以降(ISO 8601)
この日時より前(ISO 8601)
文字起こしも返す