Skip to content

Complete public API reference ​

This page is generated from the FastAPI external route surface and the curated public OpenAPI contract. It lists every operation available to an external OAuth or MCP service client; admin, desktop-internal, and website BFF routes are excluded.

All Bearer-token calls are server-to-server. Do not put access tokens, codes, client secrets, or call-context tokens in browser JavaScript, AI prompts, URLs, or logs.

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.

Authentication: Browser authorization session

Parameters

NameInRequiredTypeDescription
response_typequeryyesstring
client_idqueryyesstring
redirect_uriqueryyesstring
scopequerynostring
statequerynostring
code_challengequerynostring
code_challenge_methodquerynostring
team_idquerynostring

Responses

StatusDescriptionSchema
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

Authentication: Browser authorization session

Request body

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

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

POST /oauth/revoke ​

Revoke an open-agent token

Authentication: Open-agent client credentials

Request body

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

Responses

StatusDescriptionSchema
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.

Authentication: Open-agent client credentials

Request body

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

Responses

StatusDescriptionSchema
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.

Authentication: OAuth Bearer; scopes: balance

Responses

StatusDescriptionSchema
200—
default—

POST /api/v1/open/charge ​

Charge

Authentication: OAuth Bearer; scopes: charge

Request body

  • application/json: OpenAgentChargeInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Create Grant

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
Idempotency-Keyheaderyesstring

Request body

  • application/json: DesktopExecutionGrantInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Revoke Grant

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
grant_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Admit Run

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
grant_idpathyesstring

Request body

  • application/json: DesktopExecutionRunInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Model Result

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
grant_idpathyesstring
run_idpathyesstring
sequencepathyesinteger
requestFingerprintqueryyesstring
X-Xiaoya-Team-Idheadernostring / null

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Generation Result

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
operation_digestpathyesstring
requestFingerprintqueryyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Patch Instance

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
instance_idpathyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Request body

  • application/json: EmployeeInstancePatch (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Archive Instance

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
instance_idpathyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Instance Boundary

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
instance_idpathyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Copy Instance

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
instance_idpathyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Request body

  • application/json: EmployeeCopyInput (required)

Responses

StatusDescriptionSchema
201Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Dependency Package

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
instance_idpathyesstring
item_typepathyesstring
item_idpathyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Open Studio Link

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
instance_idpathyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Request body

  • application/json: EmployeeStudioLinkInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Upgrade Instance

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
instance_idpathyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Request body

  • application/json: EmployeeUpgradeInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Cloud Installation

Authentication: See the operation contract

Parameters

NameInRequiredTypeDescription
template_idpathyesstring
operationIdqueryyesstring
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

GET /api/v1/open/me ​

Get the current agent-scoped user

Authentication: OAuth Bearer; scopes: profile

Responses

StatusDescriptionSchema
200Current subjectSuccessEnvelope + object
default—

POST /api/v1/open/refund ​

Refund

Authentication: OAuth Bearer; scopes: charge

Request body

  • application/json: OpenAgentRefundInput (required)

Responses

StatusDescriptionSchema
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.

Authentication: OAuth Bearer; scopes: usage

Responses

StatusDescriptionSchema
200—
default—

Personal account ​

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

Bootstrap

Authentication: OAuth Bearer; scopes: account

Responses

StatusDescriptionSchema
200Successful Responseobject

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

Open Personal State

Authentication: OAuth Bearer; scopes: account

Responses

StatusDescriptionSchema
200Successful Responseobject

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

Redeem Card

Authentication: OAuth Bearer; scopes: account

Parameters

NameInRequiredTypeDescription
Idempotency-Keyheaderyesstring

Request body

  • application/json: GiftCardInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Orders

Authentication: OAuth Bearer; scopes: payment

Parameters

NameInRequiredTypeDescription
pagequerynointeger
pageSizequerynointeger

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Create Wechat Order

Authentication: OAuth Bearer; scopes: payment

Request body

  • application/json: RechargeOrderInput (required)

Responses

StatusDescriptionSchema
201Successful Responseobject
422Validation ErrorHTTPValidationError

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

Payment Order

Authentication: OAuth Bearer; scopes: payment

Parameters

NameInRequiredTypeDescription
order_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Performance

Authentication: OAuth Bearer; scopes: account

Parameters

NameInRequiredTypeDescription
rangequerynostring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Products

Authentication: OAuth Bearer; scopes: payment

Responses

StatusDescriptionSchema
200Successful Responseobject

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

Update Profile

Authentication: OAuth Bearer; scopes: account

Request body

  • application/json: ProfileInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Upload Profile Avatar

Authentication: OAuth Bearer; scopes: account

Request body

  • multipart/form-data: Body_upload_profile_avatar_api_v1_open_account_profile_avatar_post (required)

Responses

StatusDescriptionSchema
201Successful Responseobject
422Validation ErrorHTTPValidationError

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

Referral

Authentication: OAuth Bearer; scopes: account

Responses

StatusDescriptionSchema
200Successful Responseobject

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

Refunds

Authentication: OAuth Bearer; scopes: payment

Parameters

NameInRequiredTypeDescription
pagequerynointeger
pageSizequerynointeger

Responses

StatusDescriptionSchema
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.

Authentication: OAuth Bearer; scopes: model

Responses

StatusDescriptionSchema
200Personal model catalogSuccessEnvelope + object
default—

Team ​

GET /api/v1/open/teams ​

List Team contexts visible to the current subject

Authentication: OAuth Bearer; scopes: profile

Responses

StatusDescriptionSchema
200Team contextsSuccessEnvelope + object
default—

POST /api/v1/open/teams ​

Create Open Team

Authentication: OAuth Bearer; scopes: profile

Request body

  • application/json: TeamCreateInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Accept Open Invitation

Authentication: OAuth Bearer; scopes: profile

Request body

  • application/json: TeamInvitationAcceptInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Audit Log

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
pagequerynointeger
pageSizequerynointeger

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Get the exact Team balance

Authentication: OAuth Bearer; scopes: balance

Parameters

NameInRequiredTypeDescription
undefinedundefinedno—

Responses

StatusDescriptionSchema
200—
default—

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

Team Charge

Authentication: OAuth Bearer; scopes: charge

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: OpenAgentTeamChargeInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Resolve one Team context

Authentication: OAuth Bearer; scopes: profile

Parameters

NameInRequiredTypeDescription
undefinedundefinedno—

Responses

StatusDescriptionSchema
200Team contextSuccessEnvelope + object
default—

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

Open Team State

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Invitations

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Create Invitation

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: TeamInvitationInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Revoke Invitation

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
invitation_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Join Links

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Create Join Link

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: TeamJoinLinkCreateInput (required)

Responses

StatusDescriptionSchema
201Successful Responseobject
422Validation ErrorHTTPValidationError

Revoke Join Link

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
link_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Agent Search

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: KnowledgeAgentSearchInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Member Credits

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Allocate Credits

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: TeamCreditChangeInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Reclaim Credits

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: TeamCreditChangeInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Update Member Credit Quota

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
member_idpathyesstring

Request body

  • application/json: TeamMemberQuotaInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Members

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Update Member Org

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
member_idpathyesstring

Request body

  • application/json: TeamMemberOrganizationInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Update Role

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
member_idpathyesstring

Request body

  • application/json: TeamMemberRoleInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Update Status

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
member_idpathyesstring

Request body

  • application/json: TeamMemberStatusInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Team Current Membership

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

List Open Team Membership Orders

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
pagequerynointeger
pageSizequerynointeger

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Create Open Team Membership Order

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: TeamMembershipOrderInput (required)

Responses

StatusDescriptionSchema
201Successful Responseobject
422Validation ErrorHTTPValidationError

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

Get Open Team Membership Order

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
order_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

List Open Team Membership Refunds

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
order_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Team Membership Plans

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

List models available to the exact Team context

Authentication: OAuth Bearer; scopes: model

Parameters

NameInRequiredTypeDescription
undefinedundefinedno—

Responses

StatusDescriptionSchema
200Versioned Team model catalogSuccessEnvelope + object
default—

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

Get Organization

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Create Org Item

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
kindpathyesstring

Request body

  • application/json: TeamOrganizationItemInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Open Team Overview

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Team Profile

Authentication: OAuth Bearer; scopes: team_read / team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Update Team Profile

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: TeamProfileInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Team Refund

Authentication: OAuth Bearer; scopes: charge

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: OpenAgentTeamRefundInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Fund Wallet

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Request body

  • application/json: TeamWalletFundingInput (required)

Responses

StatusDescriptionSchema
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.

Authentication: OAuth Bearer; scopes: model

Parameters

NameInRequiredTypeDescription
undefinedundefinedno—
undefinedundefinedno—
undefinedundefinedno—
undefinedundefinedno—
undefinedundefinedno—
X-Request-IDheaderyesstringStable client request ID. Reuse the same value only when retrying the same request in the same billing account context.

Request body

  • application/json: object (required)

Responses

StatusDescriptionSchema
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

Authentication: OAuth Bearer; scopes: model

Parameters

NameInRequiredTypeDescription
X-Xiaoya-Team-Idheadernostring / null
X-Request-IDheaderyesstringStable client request ID. Reuse the same value only when retrying the same request in the same billing account context.

Request body

  • application/json: TtsSpeechInput (required)

Responses

StatusDescriptionSchema
200Generated speech audio. The response is never cached.string / string / string / string
422Validation ErrorHTTPValidationError

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

List Tts Options

Authentication: OAuth Bearer; scopes: model

Parameters

NameInRequiredTypeDescription
X-Xiaoya-Team-Idheadernostring / null

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Create Public Billing Session

Authentication: OAuth Bearer; scopes: model

Request body

  • application/json: PublicBillingSessionInput (required)

Responses

StatusDescriptionSchema
201Successful Responseobject
422Validation ErrorHTTPValidationError

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

Revoke Public Billing Session

Authentication: OAuth Bearer; scopes: model

Parameters

NameInRequiredTypeDescription
session_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Runtime assets ​

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

List Runtime Assets

Authentication: OAuth Bearer; scopes: skill

Parameters

NameInRequiredTypeDescription
item_typepathyesMarketItemType
X-Xiaoya-Team-Idheadernostring / null
X-Xiaoya-Team-Context-Versionheadernointeger / null

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Download Runtime Asset Package

Authentication: OAuth Bearer; scopes: skill

Parameters

NameInRequiredTypeDescription
item_typepathyesMarketItemType
item_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Execution grants ​

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

Execution Grants

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Create Execution Grant

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
Idempotency-Keyheaderyesstring

Request body

  • application/json: TeamExecutionGrantInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Revoke Execution Grant

Authentication: OAuth Bearer; scopes: team_manage

Parameters

NameInRequiredTypeDescription
team_idpathyesstring
grant_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Sandbox ​

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

Configured Capabilities

Authentication: OAuth Bearer; scopes: sandbox

Responses

StatusDescriptionSchema
200Successful Responseobject

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

Create Sandbox Workspace

Authentication: OAuth Bearer; scopes: sandbox

Request body

  • application/json: SandboxWorkspaceCreateInput (required)

Responses

StatusDescriptionSchema
201Successful Responseobject
422Validation ErrorHTTPValidationError

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

Sandbox Workspace Status

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Destroy Sandbox Workspace

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Execute Sandbox Command

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: SandboxCommandInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Status

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Acquire

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: ControlAcquireInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Heartbeat

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: ControlLeaseInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Release

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: ControlLeaseInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Key

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: KeyInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Mouse

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: MouseInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Screenshot

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Status

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Upload Sandbox File

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: SandboxFileUploadInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Download Sandbox File

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: SandboxFileDownloadInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Pause Sandbox Workspace

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Resume Sandbox Workspace

Authentication: OAuth Bearer; scopes: sandbox

Parameters

NameInRequiredTypeDescription
sandbox_idpathyesstring

Request body

  • application/json: SandboxResumeInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

MCP service callbacks ​

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

Introspect Open Agent Call Context

Authentication: Open-agent client credentials in the JSON body

Request body

  • application/json: OpenAgentCallContextIntrospectionInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

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

Complete Open Agent Async Tool

Authentication: X-Xiaoya-Call-Context

Parameters

NameInRequiredTypeDescription
invocation_idpathyesstring
X-Xiaoya-Call-Contextheaderyesstring

Request body

  • application/json: OpenAgentAsyncResultInput (required)

Responses

StatusDescriptionSchema
200Successful Responseobject
422Validation ErrorHTTPValidationError

Component schemas ​

Body_authorize_submit_oauth_authorize_post ​

FieldRequiredTypeDescription
client_idyesstringmaxLength=32
redirect_uriyesstringmaxLength=2000
scopenostringmaxLength=500
state_valuenostring / null
code_challengenostring / null
code_challenge_methodnostring / null
csrf_tokenyesstringmaxLength=200
decisionyesstringmaxLength=10
team_idnostring / null
team_consent_proofnostring / null

Body_upload_profile_avatar_api_v1_open_account_profile_avatar_post ​

FieldRequiredTypeDescription
fileyesstringformat=binary

ChatMessage ​

FieldRequiredTypeDescription
roleyesstringenum=system, user, assistant, tool
contentyesobject

ControlAcquireInput ​

FieldRequiredTypeDescription
conversationIdyesstringformat=uuid

ControlLeaseInput ​

FieldRequiredTypeDescription
conversationIdyesstringformat=uuid
fenceyesintegermin=1

DesktopExecutionGrantInput ​

FieldRequiredTypeDescription
purposenoExecutionGrantPurpose
workspaceIdyesstringminLength=1; maxLength=36
employeeIdyesstringminLength=1; maxLength=36
desktopSessionIdyesstringminLength=1; maxLength=36
deviceIdyesstringminLength=1; maxLength=128
scopesyesarray<string>
expiresInSecondsnointegermin=3600; max=31536000

DesktopExecutionRunInput ​

FieldRequiredTypeDescription
runIdyesstringminLength=36; maxLength=36

EmployeeCopyInput ​

FieldRequiredTypeDescription
operationIdyesstringminLength=8; maxLength=120

EmployeeInstancePatch ​

FieldRequiredTypeDescription
expectedConfigVersionyesintegermin=1
changesyesobject

EmployeeStudioLinkInput ​

FieldRequiredTypeDescription
operationIdyesstringminLength=8; maxLength=120
studioEmployeeIdyesstringminLength=1; maxLength=36

EmployeeUpgradeInput ​

FieldRequiredTypeDescription
expectedConfigVersionyesintegermin=1
operationIdyesstringminLength=8; maxLength=120
versionyesstringminLength=1; maxLength=32
resolutionsnoobject

ErrorEnvelope ​

FieldRequiredTypeDescription
successyesboolean
codeyesstring
messageyesstring
request_idyesstring

ExecutionGrantPurpose ​

Shape: string

GiftCardInput ​

FieldRequiredTypeDescription
codeyesstringminLength=12; maxLength=64

HTTPValidationError ​

FieldRequiredTypeDescription
detailnoarray<ValidationError>

KeyInput ​

FieldRequiredTypeDescription
keysyesarray<string>

KnowledgeAgentSearchInput ​

FieldRequiredTypeDescription
queryyesstringminLength=1; maxLength=4000
knowledgeBaseIdsnoarray<string>
limitnointegermin=1; max=20

MarketItemType ​

Shape: string

MembershipBillingPeriod ​

Shape: string

ModelCatalogItem ​

FieldRequiredTypeDescription
modelCodeyesstring
displayNameyesstring
modelTypeyesstringenum=llm, image, video
acceptsTextnoboolean
acceptsImagenoboolean
acceptsFilenoboolean
outputsTextnoboolean
outputsImagenoboolean
outputsAudionoboolean
outputsVideonoboolean
parameterSchemaVersionyesintegermin=1
parameterSpecyesobject / null
structuredOutputModenostringExplicit 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 ​

FieldRequiredTypeDescription
xyesintegermin=0
yyesintegermin=0
actionnostringenum=move, click, down, up
buttonnostringenum=left, middle, right

OAuthError ​

FieldRequiredTypeDescription
erroryesstringenum=invalid_client, invalid_grant, unsupported_grant_type
error_descriptionyesstring

OAuthTokenResponse ​

FieldRequiredTypeDescription
access_tokenyesstring
token_typeyesstring
expires_inyesinteger
scopeyesstring
team_idnostring
team_authorization_idnostring

OpenAgentAsyncResultInput ​

FieldRequiredTypeDescription
resultyesobject

OpenAgentCallContextIntrospectionInput ​

FieldRequiredTypeDescription
clientIdyesstringminLength=3; maxLength=32
clientSecretyesstringminLength=1; maxLength=512
tokenyesstringminLength=1; maxLength=8192

OpenAgentChargeInput ​

FieldRequiredTypeDescription
pointsyesintegermin=1; max=1000000000000
reasonyesstringminLength=1; maxLength=100
idempotencyKeyyesstringminLength=8; maxLength=64

OpenAgentRefundInput ​

FieldRequiredTypeDescription
pointsyesintegermin=1; max=1000000000000
reasonyesstringminLength=1; maxLength=100
idempotencyKeyyesstringminLength=8; maxLength=64
chargeIdempotencyKeyyesstringminLength=8; maxLength=64

OpenAgentTeamChargeInput ​

FieldRequiredTypeDescription
pointsyesintegermin=1; max=1000000000000
idempotencyKeyyesstringminLength=8; maxLength=64

OpenAgentTeamRefundInput ​

FieldRequiredTypeDescription
pointsyesintegermin=1; max=1000000000000
idempotencyKeyyesstringminLength=8; maxLength=64
chargeIdempotencyKeyyesstringminLength=8; maxLength=64

OpenAgentUser ​

FieldRequiredTypeDescription
userIdyesstringStable subject isolated to the current open agent.
displayNameyesstring
avatarUrlnostring / nullformat=uri

PaymentOrderType ​

Shape: string

PaymentProvider ​

Shape: string

ProfileInput ​

FieldRequiredTypeDescription
displayNamenostring / null
avatarUrlnostring / null

PublicBillingSessionInput ​

FieldRequiredTypeDescription
expires_in_secondsnointegermin=60; max=3600
max_pointsnointegermin=1; max=1000000000
max_callsnointegermin=1; max=10000

RechargeOrderInput ​

FieldRequiredTypeDescription
amount_centsnointeger / null
order_typenoPaymentOrderType
product_codenostring / null
idempotency_keyyesstringminLength=8; maxLength=120
catalog_versionnostring / null
billing_periodnoMembershipBillingPeriod / null

SandboxCommandInput ​

FieldRequiredTypeDescription
commandyesarray<string>
workingDirectorynostringminLength=1; maxLength=1000
environmentnoobject
timeoutSecondsnointegermin=1; max=900

SandboxFileDownloadInput ​

FieldRequiredTypeDescription
sourcePathyesstringminLength=1; maxLength=1000

SandboxFileUploadInput ​

FieldRequiredTypeDescription
destinationPathyesstringminLength=1; maxLength=1000
contentBase64yesstringminLength=1; maxLength=45000000

SandboxResumeInput ​

FieldRequiredTypeDescription
snapshotIdnostring / null

SandboxWorkspaceCreateInput ​

FieldRequiredTypeDescription
employeeIdyesstringformat=uuid
logicalWorkspaceIdyesstringformat=uuid
idempotencyKeyyesstringminLength=8; maxLength=160
cpuMillinointeger / null
memoryMbnointeger / null
maxRunMinutesnointeger / null
idlePauseSecondsnointeger / null
environmentnoobject

SuccessEnvelope ​

FieldRequiredTypeDescription
successyesboolean
datayesobject
request_idyesstring

TeamContext ​

FieldRequiredTypeDescription
teamIdyesstring
nameyesstring
statusyesstring
memberIdyesstring
memberStatusyesstring
roleyesstring

TeamCreateInput ​

FieldRequiredTypeDescription
nameyesstringminLength=1; maxLength=120
idempotencyKeynostring / null

TeamCreditChangeInput ​

FieldRequiredTypeDescription
memberIdyesstringminLength=1; maxLength=36
pointsyesintegermin=1; max=1000000000000
idempotencyKeyyesstringminLength=8; maxLength=160

TeamExecutionGrantInput ​

FieldRequiredTypeDescription
subjectTypeyesTeamExecutionSubjectType
subjectIdyesstringminLength=1; maxLength=128
scopesyesarray<string>
expiresInSecondsnointegermin=3600; max=31536000

TeamExecutionSubjectType ​

Shape: string

TeamInvitationAcceptInput ​

FieldRequiredTypeDescription
tokenyesstringminLength=20; maxLength=200

TeamInvitationInput ​

FieldRequiredTypeDescription
inviteeyesstringminLength=3; maxLength=320
roleyesstringminLength=1; maxLength=32
expiresInHoursnointegermin=1; max=168

TeamJoinLinkCreateInput ​

FieldRequiredTypeDescription
kindnoTeamJoinLinkKind
rolenostringminLength=1; maxLength=32
maxUsesnointegermin=1; max=10000
expiresInHoursnointegermin=1; max=720

TeamJoinLinkKind ​

Shape: string

TeamMemberOrganizationInput ​

FieldRequiredTypeDescription
departmentIdnostring / null
positionIdnostring / null
managerMemberIdnostring / null
roleIdsnoarray<string>

TeamMemberQuotaInput ​

FieldRequiredTypeDescription
quotaLimitnointeger / null
expectedVersionyesintegermin=0
idempotencyKeyyesstringminLength=8; maxLength=160

TeamMemberRoleInput ​

FieldRequiredTypeDescription
roleyesstringminLength=1; maxLength=32

TeamMembershipOrderAction ​

Shape: string

TeamMembershipOrderInput ​

FieldRequiredTypeDescription
provideryesPaymentProvider
planVersionIdyesstringminLength=1; maxLength=36
actionyesTeamMembershipOrderAction
idempotencyKeyyesstringminLength=8; maxLength=120
expectedSubscriptionVersionnointeger / null
seatCountnointeger / null
billingPeriodnoMembershipBillingPeriod / null

TeamMemberStatusInput ​

FieldRequiredTypeDescription
statusyesstringminLength=1; maxLength=24

TeamModelCatalog ​

FieldRequiredTypeDescription
teamIdyesstring
teamContextVersionyesinteger
planVersionIdyesstring
catalogVersionyesstring
itemsyesarray<ModelCatalogItem>

TeamOrganizationItemInput ​

FieldRequiredTypeDescription
nameyesstringminLength=1; maxLength=120
parentIdnostring / null
descriptionnostringmaxLength=500

TeamProfileInput ​

FieldRequiredTypeDescription
nameyesstringminLength=1; maxLength=120
avatarUrlnostring / null
descriptionnostringmaxLength=500

TeamWalletFundingInput ​

FieldRequiredTypeDescription
pointsyesintegermin=1; max=1000000000000
idempotencyKeyyesstringminLength=8; maxLength=160

TtsSpeechInput ​

FieldRequiredTypeDescription
tts_config_idyesstringminLength=3; maxLength=100
voiceyesstringminLength=1; maxLength=256
inputyesstringminLength=1; maxLength=9999
response_formatnostringminLength=2; maxLength=20
speednonumbermin=0.5; max=2
volumenonumbermax=10
pitchnointegermin=-12; max=12
emotionnostring / null
sample_ratenointegerenum=8000, 16000, 22050, 24000, 32000, 44100
bitratenointegerenum=32000, 64000, 128000, 256000
audio_channelnointegerenum=1, 2
language_boostnostringenum=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_normalizationnoboolean
latex_readnoboolean

ValidationError ​

FieldRequiredTypeDescription
locyesarray<string / integer>
msgyesstring
typeyesstring

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