开场白与开场问题
API 配置
保存后下方「Try It」面板会自动携带此 API Key 发送真实请求。
Base: api.xrtoken.net
透传火山 GetBotMeta。返回控制台配置的开场白(OpeningRemark)和开场问题(OpeningQuestions)。无 token 用量,不冻结余额。
Authorization
BearerAuth AuthorizationBearer <token>
API 密钥认证(OpenAI 格式)。在 Authorization 请求头中传入:
Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
bot_id*string
Response Body
application/json
application/json
application/json
curl -X post "https://api.xrtoken.net/v1/agent/config" \ -H "Content-Type: application/json" \ -d '{ "bot_id": "string" }'Empty
{
"error": "model field is required",
"type": "invalid_request_error"
}{
"error": "invalid or missing API key",
"type": "auth_error"
}{
"error": "upstream provider error",
"type": "server_error"
}