Workspace
此页面暂无中文版本,显示的是英文版本。
Get the workspace language set
Returns the language set the workspace owns. Every product and tenant of the workspace may use a SUBSET of this set and never anything outside it, so this is the list a language picker must offer. An EMPTY array means the workspace has not chosen its languages yet — it is the blocking onboarding state, NOT "all languages". Accessible by super roles for any workspace, and by a Workspace Administrator of this one.
Authorization
BearerAuthObject AuthorizationBearer <token>
Machine tokens only: a personal API token or a product robot token (POST /api/v2/products/{uid}/robot-tokens). A session JWT here is 401 — the web app uses the b2t_access cookie.
In: header
Path Parameters
id*string
Workspace UUID
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v2/workspaces/019fc817-0b94-7112-a578-66500eeec781/languages"{ "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c", "languageIds": [ 1, 5, 12 ]}