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.
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.
Filter on app ID.
Filter on label ID.
Possible values: [name
, name:asc
, name:desc
, created_at
, created_at:asc
, created_at:desc
, views
, views:asc
, views:desc
]
Sort by name | created_at | views, 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.
results
object
required
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
, DEVELOPMENT
, PUBLIC
]
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. It can be either user object(id, name, first_name, last_name, email) or CI object(id, name)
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
app
object
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
The calculated total daily unique sessions in case of internal/private workspace, and the number of views (count editor sessions) in case of public workspace
{
"count": 0,
"results": {
"count": 0,
"next": "string",
"previous": "string",
"results": [
{
"id": 0,
"name": "string",
"slug": "string",
"description": "string",
"created_at": "2024-06-11T11:45:44.592Z",
"updated_at": "2024-06-11T11:45:44.592Z",
"visibility": "INTERNAL",
"app_version": {
"id": 0,
"tag": "string",
"is_conflicted": true,
"status": "CREATED",
"app_type": "tree",
"sdk_version": "string",
"python_version": "string",
"connector_version": "string",
"created_at": "2024-06-11T11:45:44.592Z",
"created_by_type": "User",
"created_by_instance": 0,
"created_by_context": {},
"progress": "string"
},
"app": {
"id": 0,
"name": "string"
},
"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
}
],
"default_group": 0,
"nr_views": 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.