Get All Workspaces
GET/api/workspaces/
List the workspaces for the current user, depending on user role and access.
Request
Query Parameters
Number of results to return per page.
The initial index from which to return the results.
Possible values: [minimal, basic, full]
Default value: full
Response detail level. See :ref:Response detail levels <response detail levels target> for detail of detail levels.
Set to True for gathering all individual development workspaces of users. Requires org admin permission.
Whether or not to include archived workspaces. Requires org admin permission.
Possible values: [INTERNAL, PRIVATE, DEVELOPMENT, PUBLIC]
Filter on workspace visibility. Can be one of: INTERNAL, PRIVATE, DEVELOPMENT, PUBLIC.
Fetches only the development workspaces if true.
Fetches only the archived workspaces if true.
Filter on app ID.
Filter on label ID.
Possible values: >= 1
Filter on project ID.
Possible values: [name, name:asc, name:desc, created_at, created_at:asc, created_at:desc, views, views:asc, views:desc, views_last_30_days, views_last_30_days:asc, views_last_30_days:desc, user_last_visit, user_last_visit:asc, user_last_visit:desc]
Sort by name | created_at | views | views_last_30_days | user_last_visit, allowing for :asc and :desc suffixes.
Possible values: non-empty
Allow for fuzzy name/description match.
Responses
- 200
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
Count of all the objects in the result set.
Next url.
Previous url.
results
object[]
required
Possible values: non-empty and <= 128 characters
The name of the workspace.
Possible values: non-empty, Value must match regular expression ^[-a-zA-Z0-9_]+$
The unique slug representation of the workspace if it is public.
A description about the workspace and its usage.
The workspace creation date. The value is in ISO 8601 format.
The date the workspace was last updated. The value is in ISO 8601 format.
Possible values: [INTERNAL, PRIVATE]
Possible values: [PROJECT, DEVELOPMENT, PUBLIC, TEST]
app
object
Possible values: non-empty
Human-readable app name.
app_builder
object
The id of the Conversation.
The id of the in-preview CodeRevision.
The id of the currently active CodeRevision.
The id of the previously active CodeRevision.
The id of the first created CodeRevision.
The id of the latest created CodeRevision.
DEPRECATED
app_version
object
Possible values: non-empty
Unique version tag for the application.
Possible values: [CREATED, UPLOADING, PACKING, CHECKING, PUBLISHING, PUBLISHED, ERROR, ERROR_WITH_ACTION_REQUIRED]
Status of the app version. It can be one of CREATED, UPLOADING, PACKING, CHECKING, PUBLISHING, PUBLISHED, ERROR, ERROR_WITH_ACTION_REQUIRED
Possible values: [tree, simple, editor]
Shows the application type. It can be one of tree,simple,editor
Possible values: non-empty
Python version of the version. Supported versions are: 3.7, 3.8, 3.9, 3.10, 3.11
Possible values: non-empty
Connector version.
App version creation date. The value is in ISO 8601 format.
Possible values: [User, CI]
Type of the instance creating. It can be one of User, CI
Returns the creating instance id.
Default value: [object Object]
Context dictionary which is provided in publishing flow.
Progress steps of the app version statuses.This field returns list of dictionary having name, detail, status, started_at, and finished_at. It can be one of AWAITING, STARTED, FINISHED, FINISHED_WITH_WARNINGS, ERROR
errors
object[]
Possible values: non-empty
The error code. Check the codes reference for more information.
Extra information related to the context of the error. Check the codes reference for more information.
Possible values: non-empty
An image (b64 encoded, <1MB) visible on the workspace card.
Returns whether the workspace is dev.
Returns the owner id of a development workspace. This field is null when is_dev is false.
Returns whether the workspace is initialized with entity types.
Returns whether the workspace is archived.
Shows whether runners are ready for jobs.
labels
object[]
Possible values: non-empty and <= 30 characters
Possible values: <= 100 characters
Possible values: non-empty and <= 6 characters
project
object
Possible values: non-empty and <= 128 characters
Possible values: <= 512 characters
Possible values: [INTERNAL, PRIVATE]
Timestamp that this workspace was last used by the requesting user.
The calculated total daily unique sessions in case of PROJECT workspace, and the number of views (count editor sessions) in case of PUBLIC workspace
The calculated total daily unique sessions in case of PROJECT workspace, and the number of views (count editor sessions) in case of PUBLIC workspace (in the last 30 days).
Possible values: <= 2147483647
Target total users.
Possible values: <= 2147483647
Target monthly active users.
Possible values: <= 2147483647
Target daily active users.
{
"count": 0,
"next": "string",
"previous": "string",
"results": [
{
"id": 0,
"name": "string",
"slug": "string",
"description": "string",
"created_at": "2025-11-07T16:05:09.027Z",
"updated_at": "2025-11-07T16:05:09.027Z",
"visibility": "INTERNAL",
"type": "PROJECT",
"app": {
"id": 0,
"name": "string",
"readable_name": "string"
},
"app_builder": {
"id": 0,
"conversation_id": 0,
"current_preview_code_revision_id": 0,
"current_active_code_revision_id": 0,
"previous_active_code_revision_id": 0,
"first_created_code_revision_id": 0,
"latest_created_code_revision_id": 0,
"latest_code_revision_id": 0
},
"app_version": {
"id": 0,
"tag": "string",
"is_conflicted": true,
"status": "CREATED",
"app_type": "tree",
"sdk_version": "string",
"oauth2_integrations": "string",
"python_version": "string",
"connector_version": "string",
"created_at": "2025-11-07T16:05:09.027Z",
"created_by_type": "User",
"created_by_instance": 0,
"created_by_context": {},
"progress": [
{}
]
},
"errors": [
{
"code": "string",
"context": {}
}
],
"image": "string",
"is_dev": true,
"owner": 0,
"is_initialized": true,
"is_archived": true,
"is_active": true,
"labels": [
{
"id": 0,
"name": "string",
"description": "string",
"color": "string",
"number_of_apps": 0,
"number_of_workspaces": 0
}
],
"project": {
"id": 0,
"name": "string",
"description": "string",
"visibility": "INTERNAL"
},
"default_group": 0,
"user_last_visit": "2025-11-07T16:05:09.027Z",
"nr_views": 0,
"nr_views_last_30_days": 0,
"target_total_users": 0,
"target_monthly_active_users": 0,
"target_daily_active_users_per_month": 0,
"start_entity_id": 0
}
]
}
Validation error response.
It produces a validation error schema like below.
{
"field1": ["Validation error"],
"non_field_errors": ["Sample non field validation error"]
}
No authentication found or authentication is not correct.
Specified path is not allowed
Permission evaluation:
Is Authenticated AND Is Not App
Descriptions:
Is Authenticated : Allows access only to authenticated users.
Is Not App : Client must not be a VIKTOR app.