XRToken API Docs

Opening remark and questions

API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai

Proxies Volcengine GetBotMeta. Returns console OpeningRemark and OpeningQuestions. No token freeze.

POST
/v1/agent/config

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication (OpenAI format). Pass in the Authorization header:

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.ai/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"
}