Skip to main content
GET
/
workspaces
List workspaces
curl --request GET \
  --url https://www.orgo.ai/api/workspaces \
  --header 'Authorization: Bearer <token>'
{
  "workspaces": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "production",
      "created_at": "2024-01-15T10:30:00Z",
      "computer_count": 3
    },
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "name": "testing",
      "created_at": "2024-01-14T08:00:00Z",
      "computer_count": 1
    }
  ]
}
Returns all workspaces for the authenticated user.

Response

Returns an object containing an array of workspace objects.
workspaces
array
Array of workspace objects.

Example

curl https://www.orgo.ai/api/workspaces \
  -H "Authorization: Bearer $ORGO_API_KEY"

Response

{
  "workspaces": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "production",
      "created_at": "2024-01-15T10:30:00Z",
      "computer_count": 3
    },
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "name": "testing",
      "created_at": "2024-01-14T08:00:00Z",
      "computer_count": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Response

List of workspaces

workspaces
object[]