Retrieve the workspace
GET
/workspaceReturns the workspace a call acts on: the one in workspace_id, or the key’s only workspace. Works with any valid credential and scope.
Run in Postman: import the collection, set api_key, and find this request in its folder.
Query parameters
workspace_idUUIDThe workspace the call acts on, from List workspaces. Required when an organization API key reaches more than one workspace; a workspace key or a key limited to one workspace can leave it out.
Returns
Returns 200 OK with the Workspace object.
Errors
Failed requests return application/problem+json problem details. The errors specific to this endpoint:
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The request is malformed, such as invalid JSON. |
| 400 | workspace_id_required | The key reaches more than one workspace: pass workspace_id. |
| 401 | invalid_token | The API key is missing or malformed, or isn’t a BloomText key. |
| 401 | key_revoked | The API key was revoked. |
| 401 | key_expired | The API key’s expiry has passed. |
| 403 | insufficient_scope | The key doesn’t have the scope this endpoint needs. |
| 403 | workspace_not_reachable | The key can’t reach the workspace in workspace_id. |
| 429 | rate_limited | Too many requests. Retry after Retry-After seconds. |
Last updated on