Skip to content

完整公开 API 参考 ​

本页由 FastAPI 外部路由面与经筛选的公开 OpenAPI 自动生成,列出外部 OAuth 或 MCP 服务端可调用的全部接口;运营后台、桌面内部接口和官网私有 BFF 不在公开合同内。

所有 Bearer Token 调用都必须发生在可信服务端。Access Token、Code、Client Secret 和 Call Context 不得进入浏览器 JavaScript、AI Prompt、URL 或日志。

OAuth ​

GET /oauth/authorize ​

Authorize an open agent

Starts the authorization-code flow. Team authorization should include an exact team_id. Public clients use PKCE S256.

鉴权: 浏览器授权会话

参数

名称位置必填类型说明
response_typequery是string
client_idquery是string
redirect_uriquery是string
scopequery否string
statequery否string
code_challengequery否string
code_challenge_methodquery否string
team_idquery否string

响应

状态说明Schema
302Redirects to login, consent, Team selection, or the registered callback.—
400Invalid client, redirect URI, scope, Team context, or PKCE input.—

POST /oauth/authorize ​

Authorize Submit

鉴权: 浏览器授权会话

请求体

  • application/x-www-form-urlencoded: Body_authorize_submit_oauth_authorize_post(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /oauth/revoke ​

Revoke an open-agent token

鉴权: 智能体客户端凭据

请求体

  • application/x-www-form-urlencoded: object(必填)

响应

状态说明Schema
200Revocation is idempotent.—
400Invalid client credentials.—

POST /oauth/token ​

Exchange an authorization code

Consumes a five-minute single-use authorization code. New exchanges return a 7-day access token and no refresh token.

鉴权: 智能体客户端凭据

请求体

  • application/x-www-form-urlencoded: object(必填)

响应

状态说明Schema
200Access token response. Team exchanges also include team_id and team_authorization_id.OAuthTokenResponse
400OAuth errorOAuthError

Open context ​

GET /api/v1/open/balance ​

Get the Personal balance

Rejects Team-bound tokens.

鉴权: OAuth Bearer;Scope: balance

响应

状态说明Schema
200—
default—

POST /api/v1/open/charge ​

Charge

鉴权: OAuth Bearer;Scope: charge

请求体

  • application/json: OpenAgentChargeInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/desktop-execution-grants ​

Create Grant

鉴权: 见接口契约

参数

名称位置必填类型说明
Idempotency-Keyheader是string

请求体

  • application/json: DesktopExecutionGrantInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

DELETE /api/v1/open/desktop-execution-grants/{grant_id} ​

Revoke Grant

鉴权: 见接口契约

参数

名称位置必填类型说明
grant_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/desktop-execution-grants/{grant_id}/runs ​

Admit Run

鉴权: 见接口契约

参数

名称位置必填类型说明
grant_idpath是string

请求体

  • application/json: DesktopExecutionRunInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/desktop-execution-grants/{grant_id}/runs/{run_id}/model-results/{sequence} ​

Model Result

鉴权: 见接口契约

参数

名称位置必填类型说明
grant_idpath是string
run_idpath是string
sequencepath是integer
requestFingerprintquery是string
X-Xiaoya-Team-Idheader否string / null

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/employee-generation-results/{operation_digest} ​

Generation Result

鉴权: 见接口契约

参数

名称位置必填类型说明
operation_digestpath是string
requestFingerprintquery是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

PATCH /api/v1/open/employee-instances/{instance_id} ​

Open Patch Instance

鉴权: 见接口契约

参数

名称位置必填类型说明
instance_idpath是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

请求体

  • application/json: EmployeeInstancePatch(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

DELETE /api/v1/open/employee-instances/{instance_id} ​

Open Archive Instance

鉴权: 见接口契约

参数

名称位置必填类型说明
instance_idpath是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/employee-instances/{instance_id}/boundary ​

Open Instance Boundary

鉴权: 见接口契约

参数

名称位置必填类型说明
instance_idpath是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/employee-instances/{instance_id}/copy ​

Open Copy Instance

鉴权: 见接口契约

参数

名称位置必填类型说明
instance_idpath是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

请求体

  • application/json: EmployeeCopyInput(必填)

响应

状态说明Schema
201Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/employee-instances/{instance_id}/dependencies/{item_type}/{item_id}/package ​

Open Dependency Package

鉴权: 见接口契约

参数

名称位置必填类型说明
instance_idpath是string
item_typepath是string
item_idpath是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Open Studio Link

鉴权: 见接口契约

参数

名称位置必填类型说明
instance_idpath是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

请求体

  • application/json: EmployeeStudioLinkInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/employee-instances/{instance_id}/upgrade ​

Open Upgrade Instance

鉴权: 见接口契约

参数

名称位置必填类型说明
instance_idpath是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

请求体

  • application/json: EmployeeUpgradeInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/employee-market/{template_id}/cloud-installation ​

Open Cloud Installation

鉴权: 见接口契约

参数

名称位置必填类型说明
template_idpath是string
operationIdquery是string
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/me ​

Get the current agent-scoped user

鉴权: OAuth Bearer;Scope: profile

响应

状态说明Schema
200Current subjectSuccessEnvelope + object
default—

POST /api/v1/open/refund ​

Refund

鉴权: OAuth Bearer;Scope: charge

请求体

  • application/json: OpenAgentRefundInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/usage ​

Get Personal usage attributed to the current agent

Rejects Team-bound tokens. Team overview is not equivalent to this detail contract.

鉴权: OAuth Bearer;Scope: usage

响应

状态说明Schema
200—
default—

Personal account ​

GET /api/v1/open/account/bootstrap ​

Bootstrap

鉴权: OAuth Bearer;Scope: account

响应

状态说明Schema
200Successful Responseobject

GET /api/v1/open/account/entitlements ​

Open Personal State

鉴权: OAuth Bearer;Scope: account

响应

状态说明Schema
200Successful Responseobject

POST /api/v1/open/account/gift-cards/redeem ​

Redeem Card

鉴权: OAuth Bearer;Scope: account

参数

名称位置必填类型说明
Idempotency-Keyheader是string

请求体

  • application/json: GiftCardInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/account/orders ​

Orders

鉴权: OAuth Bearer;Scope: payment

参数

名称位置必填类型说明
pagequery否integer
pageSizequery否integer

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/account/payments/wechat ​

Create Wechat Order

鉴权: OAuth Bearer;Scope: payment

请求体

  • application/json: RechargeOrderInput(必填)

响应

状态说明Schema
201Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/account/payments/{order_id} ​

Payment Order

鉴权: OAuth Bearer;Scope: payment

参数

名称位置必填类型说明
order_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/account/performance ​

Performance

鉴权: OAuth Bearer;Scope: account

参数

名称位置必填类型说明
rangequery否string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/account/products ​

Products

鉴权: OAuth Bearer;Scope: payment

响应

状态说明Schema
200Successful Responseobject

PATCH /api/v1/open/account/profile ​

Update Profile

鉴权: OAuth Bearer;Scope: account

请求体

  • application/json: ProfileInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/account/profile/avatar ​

Upload Profile Avatar

鉴权: OAuth Bearer;Scope: account

请求体

  • multipart/form-data: Body_upload_profile_avatar_api_v1_open_account_profile_avatar_post(必填)

响应

状态说明Schema
201Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/account/referral ​

Referral

鉴权: OAuth Bearer;Scope: account

响应

状态说明Schema
200Successful Responseobject

GET /api/v1/open/account/refunds ​

Refunds

鉴权: OAuth Bearer;Scope: payment

参数

名称位置必填类型说明
pagequery否integer
pageSizequery否integer

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Models ​

GET /api/v1/open/models ​

List models available to the Personal context

Requires a Personal-bound token with the model scope.

鉴权: OAuth Bearer;Scope: model

响应

状态说明Schema
200Personal model catalogSuccessEnvelope + object
default—

Team ​

GET /api/v1/open/teams ​

List Team contexts visible to the current subject

鉴权: OAuth Bearer;Scope: profile

响应

状态说明Schema
200Team contextsSuccessEnvelope + object
default—

POST /api/v1/open/teams ​

Create Open Team

鉴权: OAuth Bearer;Scope: profile

请求体

  • application/json: TeamCreateInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/invitations/accept ​

Accept Open Invitation

鉴权: OAuth Bearer;Scope: profile

请求体

  • application/json: TeamInvitationAcceptInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/audit ​

Audit Log

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
pagequery否integer
pageSizequery否integer

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/balance ​

Get the exact Team balance

鉴权: OAuth Bearer;Scope: balance

参数

名称位置必填类型说明
undefinedundefined否—

响应

状态说明Schema
200—
default—

POST /api/v1/open/teams/{team_id}/charge ​

Team Charge

鉴权: OAuth Bearer;Scope: charge

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: OpenAgentTeamChargeInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/context ​

Resolve one Team context

鉴权: OAuth Bearer;Scope: profile

参数

名称位置必填类型说明
undefinedundefined否—

响应

状态说明Schema
200Team contextSuccessEnvelope + object
default—

GET /api/v1/open/teams/{team_id}/entitlements ​

Open Team State

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/invitations ​

Invitations

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/invitations ​

Create Invitation

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: TeamInvitationInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

DELETE /api/v1/open/teams/{team_id}/invitations/{invitation_id} ​

Revoke Invitation

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
invitation_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Join Links

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/join-links ​

Create Join Link

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: TeamJoinLinkCreateInput(必填)

响应

状态说明Schema
201Successful Responseobject
422Validation ErrorHTTPValidationError

Revoke Join Link

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
link_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/knowledge/search ​

Open Agent Search

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: KnowledgeAgentSearchInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/member-credits ​

Member Credits

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/member-credits/allocate ​

Allocate Credits

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: TeamCreditChangeInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/member-credits/reclaim ​

Reclaim Credits

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: TeamCreditChangeInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

PUT /api/v1/open/teams/{team_id}/member-credits/{member_id}/quota ​

Update Member Credit Quota

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
member_idpath是string

请求体

  • application/json: TeamMemberQuotaInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/members ​

Members

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

PUT /api/v1/open/teams/{team_id}/members/{member_id}/organization ​

Update Member Org

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
member_idpath是string

请求体

  • application/json: TeamMemberOrganizationInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

PATCH /api/v1/open/teams/{team_id}/members/{member_id}/role ​

Update Role

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
member_idpath是string

请求体

  • application/json: TeamMemberRoleInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

PATCH /api/v1/open/teams/{team_id}/members/{member_id}/status ​

Update Status

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
member_idpath是string

请求体

  • application/json: TeamMemberStatusInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/membership ​

Open Team Current Membership

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/membership/orders ​

List Open Team Membership Orders

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string
pagequery否integer
pageSizequery否integer

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/membership/orders ​

Create Open Team Membership Order

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: TeamMembershipOrderInput(必填)

响应

状态说明Schema
201Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/membership/orders/{order_id} ​

Get Open Team Membership Order

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string
order_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/membership/orders/{order_id}/refunds ​

List Open Team Membership Refunds

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string
order_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/membership/plans ​

Open Team Membership Plans

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/models ​

List models available to the exact Team context

鉴权: OAuth Bearer;Scope: model

参数

名称位置必填类型说明
undefinedundefined否—

响应

状态说明Schema
200Versioned Team model catalogSuccessEnvelope + object
default—

GET /api/v1/open/teams/{team_id}/organization ​

Get Organization

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/organization/{kind} ​

Create Org Item

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
kindpath是string

请求体

  • application/json: TeamOrganizationItemInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/overview ​

Open Team Overview

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/teams/{team_id}/profile ​

Team Profile

鉴权: OAuth Bearer;Scope: team_read / team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

PATCH /api/v1/open/teams/{team_id}/profile ​

Update Team Profile

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: TeamProfileInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/refund ​

Team Refund

鉴权: OAuth Bearer;Scope: charge

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: OpenAgentTeamRefundInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/teams/{team_id}/wallet/fund ​

Fund Wallet

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

请求体

  • application/json: TeamWalletFundingInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Model gateway ​

POST /api/proxy/v1/chat/completions ​

Call the compatible Chat Completions gateway

Personal open-agent tokens support streaming. A Team-bound token requires every X-Xiaoya workflow header and currently rejects stream=true.

鉴权: OAuth Bearer;Scope: model

参数

名称位置必填类型说明
undefinedundefined否—
undefinedundefined否—
undefinedundefined否—
undefinedundefined否—
undefinedundefined否—
X-Request-IDheader是stringStable client request ID. Reuse the same value only when retrying the same request in the same billing account context.

请求体

  • application/json: object(必填)

响应

状态说明Schema
200JSON completion or text/event-stream for a supported Personal streaming request.object / string
default—

TTS gateway ​

POST /api/proxy/v1/audio/speech ​

Create Speech

鉴权: OAuth Bearer;Scope: model

参数

名称位置必填类型说明
X-Xiaoya-Team-Idheader否string / null
X-Request-IDheader是stringStable client request ID. Reuse the same value only when retrying the same request in the same billing account context.

请求体

  • application/json: TtsSpeechInput(必填)

响应

状态说明Schema
200Generated speech audio. The response is never cached.string / string / string / string
422Validation ErrorHTTPValidationError

GET /api/proxy/v1/tts/options ​

List Tts Options

鉴权: OAuth Bearer;Scope: model

参数

名称位置必填类型说明
X-Xiaoya-Team-Idheader否string / null

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open/public-billing-sessions ​

Create Public Billing Session

鉴权: OAuth Bearer;Scope: model

请求体

  • application/json: PublicBillingSessionInput(必填)

响应

状态说明Schema
201Successful Responseobject
422Validation ErrorHTTPValidationError

DELETE /api/v1/open/public-billing-sessions/{session_id} ​

Revoke Public Billing Session

鉴权: OAuth Bearer;Scope: model

参数

名称位置必填类型说明
session_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Runtime assets ​

GET /api/v1/runtime-assets/{item_type} ​

List Runtime Assets

鉴权: OAuth Bearer;Scope: skill

参数

名称位置必填类型说明
item_typepath是MarketItemType
X-Xiaoya-Team-Idheader否string / null
X-Xiaoya-Team-Context-Versionheader否integer / null

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/runtime-assets/{item_type}/{item_id}/package ​

Download Runtime Asset Package

鉴权: OAuth Bearer;Scope: skill

参数

名称位置必填类型说明
item_typepath是MarketItemType
item_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Execution grants ​

GET /api/v1/teams/{team_id}/execution-grants ​

Execution Grants

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/teams/{team_id}/execution-grants ​

Create Execution Grant

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
Idempotency-Keyheader是string

请求体

  • application/json: TeamExecutionGrantInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

DELETE /api/v1/teams/{team_id}/execution-grants/{grant_id} ​

Revoke Execution Grant

鉴权: OAuth Bearer;Scope: team_manage

参数

名称位置必填类型说明
team_idpath是string
grant_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Sandbox ​

GET /api/v1/sandbox-runtime/computer/capabilities ​

Configured Capabilities

鉴权: OAuth Bearer;Scope: sandbox

响应

状态说明Schema
200Successful Responseobject

POST /api/v1/sandbox-runtime/workspaces ​

Create Sandbox Workspace

鉴权: OAuth Bearer;Scope: sandbox

请求体

  • application/json: SandboxWorkspaceCreateInput(必填)

响应

状态说明Schema
201Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/sandbox-runtime/workspaces/{sandbox_id} ​

Sandbox Workspace Status

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

DELETE /api/v1/sandbox-runtime/workspaces/{sandbox_id} ​

Destroy Sandbox Workspace

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/commands ​

Execute Sandbox Command

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: SandboxCommandInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/sandbox-runtime/workspaces/{sandbox_id}/computer ​

Status

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/computer/control ​

Acquire

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: ControlAcquireInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/computer/control/heartbeat ​

Heartbeat

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: ControlLeaseInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/computer/control/release ​

Release

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: ControlLeaseInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/computer/key ​

Key

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: KeyInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/computer/mouse ​

Mouse

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: MouseInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/computer/screenshot ​

Screenshot

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/sandbox-runtime/workspaces/{sandbox_id}/computer/status ​

Status

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/files ​

Upload Sandbox File

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: SandboxFileUploadInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/files/download ​

Download Sandbox File

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: SandboxFileDownloadInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/pause ​

Pause Sandbox Workspace

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/sandbox-runtime/workspaces/{sandbox_id}/resume ​

Resume Sandbox Workspace

鉴权: OAuth Bearer;Scope: sandbox

参数

名称位置必填类型说明
sandbox_idpath是string

请求体

  • application/json: SandboxResumeInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

MCP service callbacks ​

POST /api/v1/open-agent-tools/call-context/introspect ​

Introspect Open Agent Call Context

鉴权: JSON Body 中的智能体 Client ID 与 Client Secret

请求体

  • application/json: OpenAgentCallContextIntrospectionInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /api/v1/open-agent-tools/callbacks/{invocation_id} ​

Complete Open Agent Async Tool

鉴权: X-Xiaoya-Call-Context

参数

名称位置必填类型说明
invocation_idpath是string
X-Xiaoya-Call-Contextheader是string

请求体

  • application/json: OpenAgentAsyncResultInput(必填)

响应

状态说明Schema
200Successful Responseobject
422Validation ErrorHTTPValidationError

公共 Schema 字段 ​

Body_authorize_submit_oauth_authorize_post ​

字段必填类型说明
client_id是stringmaxLength=32
redirect_uri是stringmaxLength=2000
scope否stringmaxLength=500
state_value否string / null
code_challenge否string / null
code_challenge_method否string / null
csrf_token是stringmaxLength=200
decision是stringmaxLength=10
team_id否string / null
team_consent_proof否string / null

Body_upload_profile_avatar_api_v1_open_account_profile_avatar_post ​

字段必填类型说明
file是stringformat=binary

ChatMessage ​

字段必填类型说明
role是stringenum=system, user, assistant, tool
content是object

ControlAcquireInput ​

字段必填类型说明
conversationId是stringformat=uuid

ControlLeaseInput ​

字段必填类型说明
conversationId是stringformat=uuid
fence是integermin=1

DesktopExecutionGrantInput ​

字段必填类型说明
purpose否ExecutionGrantPurpose
workspaceId是stringminLength=1; maxLength=36
employeeId是stringminLength=1; maxLength=36
desktopSessionId是stringminLength=1; maxLength=36
deviceId是stringminLength=1; maxLength=128
scopes是array<string>
expiresInSeconds否integermin=3600; max=31536000

DesktopExecutionRunInput ​

字段必填类型说明
runId是stringminLength=36; maxLength=36

EmployeeCopyInput ​

字段必填类型说明
operationId是stringminLength=8; maxLength=120

EmployeeInstancePatch ​

字段必填类型说明
expectedConfigVersion是integermin=1
changes是object

EmployeeStudioLinkInput ​

字段必填类型说明
operationId是stringminLength=8; maxLength=120
studioEmployeeId是stringminLength=1; maxLength=36

EmployeeUpgradeInput ​

字段必填类型说明
expectedConfigVersion是integermin=1
operationId是stringminLength=8; maxLength=120
version是stringminLength=1; maxLength=32
resolutions否object

ErrorEnvelope ​

字段必填类型说明
success是boolean
code是string
message是string
request_id是string

ExecutionGrantPurpose ​

结构: string

GiftCardInput ​

字段必填类型说明
code是stringminLength=12; maxLength=64

HTTPValidationError ​

字段必填类型说明
detail否array<ValidationError>

KeyInput ​

字段必填类型说明
keys是array<string>

KnowledgeAgentSearchInput ​

字段必填类型说明
query是stringminLength=1; maxLength=4000
knowledgeBaseIds否array<string>
limit否integermin=1; max=20

MarketItemType ​

结构: string

MembershipBillingPeriod ​

结构: string

ModelCatalogItem ​

字段必填类型说明
modelCode是string
displayName是string
modelType是stringenum=llm, image, video
acceptsText否boolean
acceptsImage否boolean
acceptsFile否boolean
outputsText否boolean
outputsImage否boolean
outputsAudio否boolean
outputsVideo否boolean
parameterSchemaVersion是integermin=1
parameterSpec是object / null
structuredOutputMode否stringExplicit structured-output mode declared by the model catalog. Use prompt when this field is absent. The legacy supportsJson flag alone does not declare native json_object or json_schema support.; enum=prompt, json_object, json_schema

MouseInput ​

字段必填类型说明
x是integermin=0
y是integermin=0
action否stringenum=move, click, down, up
button否stringenum=left, middle, right

OAuthError ​

字段必填类型说明
error是stringenum=invalid_client, invalid_grant, unsupported_grant_type
error_description是string

OAuthTokenResponse ​

字段必填类型说明
access_token是string
token_type是string
expires_in是integer
scope是string
team_id否string
team_authorization_id否string

OpenAgentAsyncResultInput ​

字段必填类型说明
result是object

OpenAgentCallContextIntrospectionInput ​

字段必填类型说明
clientId是stringminLength=3; maxLength=32
clientSecret是stringminLength=1; maxLength=512
token是stringminLength=1; maxLength=8192

OpenAgentChargeInput ​

字段必填类型说明
points是integermin=1; max=1000000000000
reason是stringminLength=1; maxLength=100
idempotencyKey是stringminLength=8; maxLength=64

OpenAgentRefundInput ​

字段必填类型说明
points是integermin=1; max=1000000000000
reason是stringminLength=1; maxLength=100
idempotencyKey是stringminLength=8; maxLength=64
chargeIdempotencyKey是stringminLength=8; maxLength=64

OpenAgentTeamChargeInput ​

字段必填类型说明
points是integermin=1; max=1000000000000
idempotencyKey是stringminLength=8; maxLength=64

OpenAgentTeamRefundInput ​

字段必填类型说明
points是integermin=1; max=1000000000000
idempotencyKey是stringminLength=8; maxLength=64
chargeIdempotencyKey是stringminLength=8; maxLength=64

OpenAgentUser ​

字段必填类型说明
userId是stringStable subject isolated to the current open agent.
displayName是string
avatarUrl否string / nullformat=uri

PaymentOrderType ​

结构: string

PaymentProvider ​

结构: string

ProfileInput ​

字段必填类型说明
displayName否string / null
avatarUrl否string / null

PublicBillingSessionInput ​

字段必填类型说明
expires_in_seconds否integermin=60; max=3600
max_points否integermin=1; max=1000000000
max_calls否integermin=1; max=10000

RechargeOrderInput ​

字段必填类型说明
amount_cents否integer / null
order_type否PaymentOrderType
product_code否string / null
idempotency_key是stringminLength=8; maxLength=120
catalog_version否string / null
billing_period否MembershipBillingPeriod / null

SandboxCommandInput ​

字段必填类型说明
command是array<string>
workingDirectory否stringminLength=1; maxLength=1000
environment否object
timeoutSeconds否integermin=1; max=900

SandboxFileDownloadInput ​

字段必填类型说明
sourcePath是stringminLength=1; maxLength=1000

SandboxFileUploadInput ​

字段必填类型说明
destinationPath是stringminLength=1; maxLength=1000
contentBase64是stringminLength=1; maxLength=45000000

SandboxResumeInput ​

字段必填类型说明
snapshotId否string / null

SandboxWorkspaceCreateInput ​

字段必填类型说明
employeeId是stringformat=uuid
logicalWorkspaceId是stringformat=uuid
idempotencyKey是stringminLength=8; maxLength=160
cpuMilli否integer / null
memoryMb否integer / null
maxRunMinutes否integer / null
idlePauseSeconds否integer / null
environment否object

SuccessEnvelope ​

字段必填类型说明
success是boolean
data是object
request_id是string

TeamContext ​

字段必填类型说明
teamId是string
name是string
status是string
memberId是string
memberStatus是string
role是string

TeamCreateInput ​

字段必填类型说明
name是stringminLength=1; maxLength=120
idempotencyKey否string / null

TeamCreditChangeInput ​

字段必填类型说明
memberId是stringminLength=1; maxLength=36
points是integermin=1; max=1000000000000
idempotencyKey是stringminLength=8; maxLength=160

TeamExecutionGrantInput ​

字段必填类型说明
subjectType是TeamExecutionSubjectType
subjectId是stringminLength=1; maxLength=128
scopes是array<string>
expiresInSeconds否integermin=3600; max=31536000

TeamExecutionSubjectType ​

结构: string

TeamInvitationAcceptInput ​

字段必填类型说明
token是stringminLength=20; maxLength=200

TeamInvitationInput ​

字段必填类型说明
invitee是stringminLength=3; maxLength=320
role是stringminLength=1; maxLength=32
expiresInHours否integermin=1; max=168

TeamJoinLinkCreateInput ​

字段必填类型说明
kind否TeamJoinLinkKind
role否stringminLength=1; maxLength=32
maxUses否integermin=1; max=10000
expiresInHours否integermin=1; max=720

TeamJoinLinkKind ​

结构: string

TeamMemberOrganizationInput ​

字段必填类型说明
departmentId否string / null
positionId否string / null
managerMemberId否string / null
roleIds否array<string>

TeamMemberQuotaInput ​

字段必填类型说明
quotaLimit否integer / null
expectedVersion是integermin=0
idempotencyKey是stringminLength=8; maxLength=160

TeamMemberRoleInput ​

字段必填类型说明
role是stringminLength=1; maxLength=32

TeamMembershipOrderAction ​

结构: string

TeamMembershipOrderInput ​

字段必填类型说明
provider是PaymentProvider
planVersionId是stringminLength=1; maxLength=36
action是TeamMembershipOrderAction
idempotencyKey是stringminLength=8; maxLength=120
expectedSubscriptionVersion否integer / null
seatCount否integer / null
billingPeriod否MembershipBillingPeriod / null

TeamMemberStatusInput ​

字段必填类型说明
status是stringminLength=1; maxLength=24

TeamModelCatalog ​

字段必填类型说明
teamId是string
teamContextVersion是integer
planVersionId是string
catalogVersion是string
items是array<ModelCatalogItem>

TeamOrganizationItemInput ​

字段必填类型说明
name是stringminLength=1; maxLength=120
parentId否string / null
description否stringmaxLength=500

TeamProfileInput ​

字段必填类型说明
name是stringminLength=1; maxLength=120
avatarUrl否string / null
description否stringmaxLength=500

TeamWalletFundingInput ​

字段必填类型说明
points是integermin=1; max=1000000000000
idempotencyKey是stringminLength=8; maxLength=160

TtsSpeechInput ​

字段必填类型说明
tts_config_id是stringminLength=3; maxLength=100
voice是stringminLength=1; maxLength=256
input是stringminLength=1; maxLength=9999
response_format否stringminLength=2; maxLength=20
speed否numbermin=0.5; max=2
volume否numbermax=10
pitch否integermin=-12; max=12
emotion否string / null
sample_rate否integerenum=8000, 16000, 22050, 24000, 32000, 44100
bitrate否integerenum=32000, 64000, 128000, 256000
audio_channel否integerenum=1, 2
language_boost否stringenum=Chinese, Chinese,Yue, English, Arabic, Russian, Spanish, French, Portuguese, German, Turkish, Dutch, Ukrainian, Vietnamese, Indonesian, Japanese, Italian, Korean, Thai, Polish, Romanian, Greek, Czech, Finnish, Hindi, Bulgarian, Danish, Hebrew, Malay, Persian, Slovak, Swedish, Croatian, Filipino, Hungarian, Norwegian, Slovenian, Catalan, Nynorsk, Tamil, Afrikaans, auto
text_normalization否boolean
latex_read否boolean

ValidationError ​

字段必填类型说明
loc是array<string / integer>
msg是string
type是string

OAuth credentials and model-provider secrets must remain on trusted servers.