Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.raptora.io/v1/agents/{id}/unpublish \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.raptora.io/v1/agents/{id}/unpublish" headers = {"Authorization": "Bearer <token>"} response = requests.post(url, headers=headers) print(response.text)
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.raptora.io/v1/agents/{id}/unpublish', 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.raptora.io/v1/agents/{id}/unpublish", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", 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.raptora.io/v1/agents/{id}/unpublish" req, _ := http.NewRequest("POST", 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.post("https://api.raptora.io/v1/agents/{id}/unpublish") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://api.raptora.io/v1/agents/{id}/unpublish") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer <token>' response = http.request(request) puts response.read_body
{ "object": "agent", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "status": "LIVE", "channels": [ "VOICE" ], "voice": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "instructions": "<string>", "greeting": "<string>", "promptVersion": 0, "toolIds": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "knowledgeBaseIds": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ] }
{ "type": "<string>", "title": "<string>", "status": 0, "detail": "<string>", "requestId": "<string>", "errors": [ { "path": "<string>", "message": "<string>" } ], "requiredScope": "<string>", "retryAfter": 0 }
Агентыг PAUSED болгож, утасны дугаараас нь чөлөөлнө.
Шаардлагатай эрх: agents:write
agents:write
rpt_live_ эсвэл rpt_test_-ээр эхэлсэн нууц API key.
rpt_live_
rpt_test_
Байгууллагын API key аль төсөл дээр ажиллахыг заана. Өгөхгүй бол үндсэн төсөл. Төслийн API key зөвхөн өөрийн төслийг заана.
Нөөцийн id.
OK
Үргэлж agent.
agent
"agent"
Агентын id.
Агентын нэр. Төсөл дотор давхардахгүй.
Дотоод тайлбар. Агент үүнийг уншихгүй.
DRAFT: шинэ, ярихгүй. LIVE: ярьж байна. PAUSED: зогссон.
LIVE
PAUSED
DRAFT
Агентын ярих сувгууд. VOICE: утас, CHAT: виджет, SOCIAL: Facebook, Instagram.
VOICE
CHAT
SOCIAL
Хоолойн id, voices.list-ээс. Чат агентад null.
voices.list
Үүсгэсэн хугацаа.
Сүүлд өөрчилсөн хугацаа.
Агент хэрхэн ярих, юу хийхийг заасан заавар.
Агентын яриаг эхлүүлэх үг.
Заавар, мэндчилгээ өөрчлөгдөх бүрт бид 1-ээр нэмнэ. Та өгөхгүй. agents.versions-оос түүхийг үзнэ.
agents.versions
-9007199254740991 <= x <= 9007199254740991
Агентын ашиглах хэрэгслүүдийн id.
Агентын хариулахдаа уншдаг мэдлэгийн сангуудын id.