Skip to main content
GET
Get Workspace

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

Workspace id

Query Parameters

version
string

Optional version

metadata
boolean

When true, enrich the response with the .import.yml metadata (groups / dependsOn / app / version). Off by default so regular reads (e.g. the frontend) skip the extra lookups.

Response

Success Response

name
string
required
Pattern: ^[0-9A-Za-zÀ-ÖØ-öø-ÿ ,.'- ]{1,60}$
description
Example:
photo
string
config
object
blocks
object
slug
string
id
string
labels
string[]
Pattern: ^[0-9A-Za-z._:-]{2,60}$
customDomains
string[]
registerWorkspace
boolean

If true, make this workspace metadata available to all workspaces with this variable : {{global.workspacesRegistry[WORKSPACE_SLUG]}}

repositories
object

Remote versioning repositories

platformRepositories
object

Platform remote versioning repositories

secrets
object
events
object
writeLock
object

Lock preventing writes during versioning operations or unresolved merge conflicts

generation
integer

Monotonic counter incremented on every workspace modification. Used by the runtime to detect a stale runtime.yml (e.g. after a crash during import) and trigger a rebuild.

automations
object
pages
object
imports
object
groups
string[]

Workspace groups deduced from labels (mirrors .import.yml). Used by the workspaces repo tooling to rebuild .import.yml from the live workspace. The .import.yml workspaceId maps to this response id field.

dependsOn
string[]

Source app slugs this workspace depends on, e.g. "app/Collection" (mirrors .import.yml).

app
object

App store publication of this workspace, if any (mirrors .import.yml app section).

version
object

Last published/export version (mirrors .import.yml version section).

createdAt
string
updatedAt
string
createdBy
string