API ReferenceEndpoints

Workspace

Workspace management API

MethodPathDescription
GET/api/v1/workspacesList user's workspaces
GET/api/v1/workspaces/{slug}Get workspace by ID

List user's workspaces

GET /api/v1/workspaces

Retrieve all workspaces owned by the authenticated user

Responses

StatusDescription
200Workspaces retrieved successfully
401Authentication required

Example Response

{
  "success": true,
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "slug": "string",
      "description": "string",
      "ownerId": "550e8400-e29b-41d4-a716-446655440000",
      "provisioned": true,
      "engineVersion": "string",
      "createdAt": "2025-03-28T14:22:03Z",
      "updatedAt": "2025-03-28T14:22:03Z"
    }
  ]
}

Example

curl -X GET "https://poliglot.io/api/v1/workspaces" \
  -H "Authorization: Bearer <your-token>"

Get workspace by ID

GET /api/v1/workspaces/{slug}

Retrieve a workspace by its ID

Path Parameters

NameRequiredDescription
slugYesWorkspace Slug

Responses

StatusDescription
200Workspace retrieved successfully
404Workspace not found

Response Shape

FieldTypeDescription
idstring (uuid)
slugstring
descriptionstring
ownerIdstring (uuid)
provisionedboolean
engineVersionstring
createdAtstring (date-time)
updatedAtstring (date-time)

Example Response

{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "slug": "string",
    "description": "string",
    "ownerId": "550e8400-e29b-41d4-a716-446655440000",
    "provisioned": true,
    "engineVersion": "string",
    "createdAt": "2025-03-28T14:22:03Z",
    "updatedAt": "2025-03-28T14:22:03Z"
  }
}

Example

curl -X GET "https://poliglot.io/api/v1/workspaces/<slug>" \
  -H "Authorization: Bearer <your-token>"

On this page