Skip to main content
GET
/
api
/
svc
/
v1
/
workspaces
List workspaces
curl --request GET \
  --url https://{controlPlaneURL}/api/svc/v1/workspaces \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "fqn": "<string>",
      "tenantName": "<string>",
      "clusterId": "<string>",
      "createdBySubject": {
        "subjectId": "<string>",
        "subjectType": "user",
        "subjectSlug": "<string>",
        "subjectDisplayName": "<string>",
        "subjectPatName": "<string>",
        "subjectControllerName": "<string>",
        "subjectExternalIdentitySlug": "<string>"
      },
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "manifest": {
        "type": "workspace",
        "cluster_fqn": "<string>",
        "name": "<string>",
        "environment_name": "<string>",
        "labels": {},
        "annotations": {},
        "collaborators": [
          {
            "subject": "<string>",
            "role_id": "<string>"
          }
        ],
        "permissions": [
          {
            "resource_fqn": "<string>",
            "resource_type": "<string>",
            "role_id": "<string>"
          }
        ],
        "ownedBy": {
          "account": "<string>"
        }
      },
      "accountId": "<string>",
      "environmentId": "<string>",
      "isSystemWs": true,
      "createdBy": "<string>"
    }
  ],
  "pagination": {
    "total": 100,
    "offset": 0,
    "limit": 10
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:100

Number of items per page

Required range: 1 <= x <= 1000
Example:

10

offset
integer
default:0

Number of items to skip

Required range: x >= 0
Example:

0

clusterId
string

Filter workspaces by the cluster they belong to. Pass the cluster ID.

name
string

Filter workspaces by exact name match.

fqn
string

Filter workspaces by their FQN.

includeCluster
boolean

When true, each workspace in the response includes summary information about its cluster.

Response

200 - application/json

Paginated list of workspaces the caller has access to.

data
Workspace · object[]
required

List of workspaces matching the query criteria.

pagination
Pagination · object
required

Pagination metadata including total count, limit, and offset.