REST reference · v1
List assigned workspaces
GET
/v1/workspacesCurrent active company assignments; verified global authority may see all company workspaces.
Company permissions
Current active company assignments; verified global authority may see all company workspaces.
Required OAuth scopes: orchesphere.read. How scopes and company rights work.
Request
This operation does not accept a request body.
http
GET /v1/workspaces HTTP/1.1
Host: api.orchesphere.ai
Authorization: Bearer <access_token>
Accept: application/jsonUse actual IDs returned for your assigned workspace. The example values are fictional. REST v1 accepts no query parameters.
Response · 200
| Field | Type | Required | Description / bounds |
|---|---|---|---|
workspaces | array | Yes | maxItems: 200 |
page | object | Yes | — |
Complete response schema
{
"type": "object",
"properties": {
"workspaces": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,80}$",
"minLength": 8,
"maxLength": 80
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"maxItems": 200
},
"page": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"enum": [
100,
200
]
},
"returned": {
"type": "integer",
"minimum": 0,
"maximum": 200
},
"mayHaveMore": {
"type": "boolean"
}
},
"required": [
"limit",
"returned",
"mayHaveMore"
],
"additionalProperties": false
}
},
"required": [
"workspaces",
"page"
],
"additionalProperties": false
}json
{
"workspaces": [
{
"id": "11111111-1111-4111-8111-111111111111",
"name": "Example Company"
}
],
"page": {
"limit": 200,
"returned": 1,
"mayHaveMore": false
}
}Errors
| Status | Meaning |
|---|---|
400 | Invalid path/query/body/header or business validation. |
401 | Missing, expired, revoked, invalid or wrong-resource token. |
402 | Verified company payment is required. |
403 | Insufficient token scope or current company/service/portal/task authority. |
404 | Unknown endpoint or record not found/inaccessible. |
405 | Method is not supported for this path. |
409 | State, quota or idempotency conflict; re-read current state. |
413 | Request exceeds 24,000 bytes. |
415 | Use uncompressed application/json. |
429 | Company job/rate/paid-period allowance reached. |
503 | Temporarily unavailable; a lost mutation response does not prove nothing was saved. |