跳转到内容

Overview

Tansr 平台面向开发者的公开 REST 接口:数据面(OpenAI / Anthropic 兼容)、twp 协议面、控制面(认证 / 组织 / 应用 / 配置 / 用量)与健康探针。错误响应统一为 { error: { code, message, requestId, detail? } },错误码见「错误码参考」。

Information

  • OpenAPI version: 3.1.0

PAT(tansr_sk_…)或登录 access token

Security scheme type: http

ApiKeyId(api_keys.public_id;T-A13 /t1 面,与 x-tansr-key 并携)

Security scheme type: apiKey

Header parameter name: x-tansr-key-id

ApiKey 密文(tsk_+40 位 base62;TLS 承载,日志脱敏)

Security scheme type: apiKey

Header parameter name: x-tansr-key

App_user 短期令牌(doc/89 契约 1;开发者服务端经 POST /v1/app-tokens 换发,TTL 60s–86400s;终端分发形态,日志脱敏)

Security scheme type: apiKey

Header parameter name: x-tansr-app-token