埋点
API 配置
保存后下方「Try It」面板会自动携带此 API Key 发送真实请求。
Base: api.xrtoken.net
透传火山 AgentEventLog。bot_id 仅用于网关 ACL,转发前去掉。
event_list 最多 20 条。无 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.
Response Body
application/json
application/json
application/json
curl -X post "https://api.xrtoken.net/v1/agent/events" \ -H "Content-Type: application/json" \ -d '{ "bot_id": "string", "request_id": "string", "event_list": [ { "event_name": "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"
}