/v1/workspacesReturns every workspace you are an active member of, newest first, with your role and
permissions in each. This endpoint needs no X-Workspace-Slug header.
Without query parameters, every workspace is returned in data. Send page or page_size to
paginate. A top-level pagination object is then added next to data, and q filters the
results. q is ignored unless page or page_size is present.
Authentication
Send your API key as Authorization: Bearer <token>.
Query parameters
pageintegerPage number, starting at 1. Values below 1 (or non-numbers) are treated as 1. Sending this enables pagination.
min 1
page_sizeintegerItems per page. Defaults to 10. Values above 100 are capped at 100. Sending this enables pagination.
Default 10min 1 · max 100
qstringCase-insensitive substring search across the workspace's name, slug and description. Only applied when paginating.
Response
Your workspaces. pagination is only present when page or page_size was sent.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the workspace. Used in /v1/workspaces/{workspace_uid}/... paths.
namestringRequiredDisplay name.
slugstringRequiredUnique slug. Send it in X-Workspace-Slug to act in this workspace.
descriptionstringRequiredFree-text description. Empty when not set.
is_defaultbooleanRequiredWhether this is the owner's default workspace, created at signup. It cannot be deleted.
vm_exec_enabledbooleanRequiredWhether running commands on VMs through the API is allowed. See Update workspace settings.
created_atstring (date-time)RequiredWhen the workspace was created.
updated_atstring (date-time)RequiredWhen the workspace was last changed.
rolestringYour role in the workspace. Omitted when deleting a workspace.
One ofowneradmindeveloperviewer
permissionsarray of stringsThe permissions your role grants. Omitted when deleting a workspace.
One ofworkspace.readworkspace.manageresource.writeruntime.connectsecrets.readsecrets.managemembers.manageaudit.readbilling.readbilling.manageworkspace.transferworkspace.delete
member_countintegerRequiredNumber of active members. 0 in the response to deleting a workspace.
paginationobjectPaging details. Only present when page or page_size was sent.
Show attributesHide attributes
pageintegerRequiredCurrent page number.
page_sizeintegerRequiredItems per page.
totalintegerRequiredTotal number of matching items.
total_pagesintegerRequiredTotal number of pages.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
Errors use the standard error format.