Crescendo Lab ドキュメント
日本語
無料で始める

AI Gateway API リファレンス

Platform API v1 の AI Gateway:各操作のパス、パラメーター、リクエストとレスポンスのフィールド、スコープ、冪等性、エラーをコントラクトから掲載します。

最終更新

API コントラクト(Agent Lab Platform API 1.0.0-alpha.1)から生成しています。説明文はコントラクトの英語の原文のままです。

Whether the workspace's AI Gateway is on, and its plan and prepaid credit. The scope is restricted: it reads money.

The workspace's AI Gateway, plan and credit#

GET /v1/workspaces/{workspaceId}/gateway

Whether the workspace's AI Gateway is on (enabled) and whether Agent Lab turned it off (operatorDisabled), for any active member. plan is the Gateway's plan this UTC month, its included and used requests, its spending cap and what was spent, and its prepaid credit in US dollars, as the console's plan page shows them; it is null while the Gateway is off and for a member who may not read the workspace's usage. An amount the platform could not price is null, never zero; credit is null before the workspace's first credit.

スコープ実行主体認証Idempotency-Key
billing:readmemberinstallationToken—

パラメーター

名前場所型必須説明
workspaceIdpathstringはいThe workspace, by id. It must be the installation's.
Agentlab-On-Behalf-OfheaderstringはいThe account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again.

レスポンス

ステータスボディ説明
200application/json: GatewayThe AI Gateway.
400application/json: ErrorThe request itself is wrong, such as a cursor this list did not answer (recovery: none).
401application/json: ErrorNo token, or a token the platform does not honor.
403application/json: ErrorRefused: SCOPE_NOT_GRANTED (configure); WORKSPACE_NOT_INSTALLED, the path names a workspace other than the installation's (configure); MEMBER_REQUIRED, no single Agentlab-On-Behalf-Of (none); MEMBER_NOT_AUTHORIZED, the named account is not a current member who signed in to the application here, or the member may not read or do this (authorize); SERVER_TO_SERVER_ONLY, sent from a browser (none); PRODUCT_ACCESS_DENIED, the workspace's plan does not include it (configure).
404application/json: ErrorNo such operation or resource.
429application/json: ErrorRate limited (recovery: retry).
503application/json: ErrorTry again later (recovery: retry).