Base URL
These endpoints are served under the public
/v1 prefix.Authentication
Every request requires an existing workspace API key in theX-API-Key header.
Endpoints
List workspaces
GET /v1/workspaces — page through the workspaces the key can access.Create workspace
POST /v1/workspaces — create a workspace.Update workspace
PUT /v1/workspaces/{workspaceId} — change a workspace name or scope.Delete workspace
DELETE /v1/workspaces/{workspaceId} — delete a workspace.Create API key
POST /v1/{workspaceId}/developer/api-keys — issue a scoped API key.Workspace fields
POST /v1/workspaces and PUT /v1/workspaces/{workspaceId} accept the same body.
A workspace returned by the API includes these fields.
PUT /v1/workspaces/{workspaceId} replaces the workspace fields rather than patching individual values. Send the complete set of fields you want the workspace to have.Pagination and sorting
GET /v1/workspaces accepts these query parameters.
The response wraps the results in a paged object containing
items, page, perPage, totalCount, column, order, and searchText.
API key fields
POST /v1/{workspaceId}/developer/api-keys accepts these fields.
The created key is returned with
id, name, description, key, scopes, status, spaceName, createdBy, createdAt, updatedAt, expiresAt, and lastUsedAt. The status field is either active or revoked.
Errors
Errors return acode and an error message.