更新通话记录
curl --request PUT \
--url https://api.aisa.one/apis/v1/apollo/phone_calls/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/apollo/phone_calls/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/apollo/phone_calls/{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.aisa.one/apis/v1/apollo/phone_calls/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
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.aisa.one/apis/v1/apollo/phone_calls/{id}"
req, _ := http.NewRequest("PUT", 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.put("https://api.aisa.one/apis/v1/apollo/phone_calls/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/apollo/phone_calls/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"phone_call": {}
}电话通话
更新通话记录
更新通话记录。
PUT
https://api.aisa.one
/
apis
/
v1
/
apollo
/
phone_calls
/
{id}
更新通话记录
curl --request PUT \
--url https://api.aisa.one/apis/v1/apollo/phone_calls/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/apollo/phone_calls/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/apollo/phone_calls/{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.aisa.one/apis/v1/apollo/phone_calls/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
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.aisa.one/apis/v1/apollo/phone_calls/{id}"
req, _ := http.NewRequest("PUT", 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.put("https://api.aisa.one/apis/v1/apollo/phone_calls/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/apollo/phone_calls/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"phone_call": {}
}第一次用? 把任意 MCP 客户端指向
https://mcp.aisa.one/mcp —— Claude Code、
Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次
Allow,不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点:
search、list_categories、get_details 和 batch_quote 免费,batch_use
按次计费。各客户端的接入步骤见通过 MCP 连接;实时工具列表和
每次调用的价格见 aisa.one/zh-cn/mcp。请求规范
- 方法与路径: PUT /apis/v1/apollo/phone_calls/{id}
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/apollo/phone_calls/{id} - id: path; 必填
- account_id: query; 可选
- contact_id: query; 可选
- duration: query; 可选
- end_time: query; 可选
- from_number: query; 可选
- logged: query; 可选
- phone_call_outcome_id: query; 可选
- phone_call_purpose_id: query; 可选
- start_time: query; 可选
- status: query; 可选
- to_number: query; 可选
- user_id[]: query; 可选
{
"operationId": "put_apollo_phone_calls_id",
"method": "PUT",
"path": "/apis/v1/apollo/phone_calls/{id}",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Call record ID.",
"in": "path",
"name": "id",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Account ID.",
"in": "query",
"name": "account_id",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Contact ID.",
"in": "query",
"name": "contact_id",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Duration in seconds.",
"in": "query",
"name": "duration",
"required": false,
"schema": {
"type": "integer"
}
},
{
"description": "ISO 8601 end time.",
"in": "query",
"name": "end_time",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Caller phone number.",
"in": "query",
"name": "from_number",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Whether to create an individual record.",
"in": "query",
"name": "logged",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"description": "Outcome ID.",
"in": "query",
"name": "phone_call_outcome_id",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Purpose ID.",
"in": "query",
"name": "phone_call_purpose_id",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "ISO 8601 start time.",
"in": "query",
"name": "start_time",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Call status.",
"in": "query",
"name": "status",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Dialed phone number.",
"in": "query",
"name": "to_number",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Caller user IDs.",
"in": "query",
"name": "user_id[]",
"required": false,
"schema": {
"items": {
"type": "string"
},
"type": "array"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}