v106

OpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-08-03812347972.4 KB
oauth

create OAuth account

post/w/{workspace}/oauth/create_account

Path parameters

workspacestring required

Request body

refresh_tokenstring required

OAuth refresh token. For authorization_code flow, this contains the actual refresh token. For client_credentials flow, this must be set to an empty string.

expires_ininteger required
clientstring required
grant_typestring
cc_client_idstring

OAuth client ID for resource-level credentials (client_credentials flow only)

cc_client_secretstring

OAuth client secret for resource-level credentials (client_credentials flow only)

cc_instancestring

Instance name for built-in providers whose client-credentials token URL is instance-templated; substituted into the fixed-host registry template server-side (client_credentials flow only). The token URL is never caller-supplied.

cc_token_urlstring

Bring-your-own token endpoint override (client_credentials flow only). Only honored together with cc_client_id/cc_client_secret and mutually exclusive with cc_instance; ignored/rejected on the shared-instance path.

mcp_server_urlstring

MCP server URL for MCP OAuth token refresh

scopesstring[]

OAuth scopes to use for token refresh. Overrides instance-level scopes.

Response

account set