Skip to navigation

Get a workspace

One workspace by id: any row you can see, owned saying whether it is yours. Your own rows now; a colleague’s ORG workspace of your organisation once organisation admission exists, and from then 503 NOT_PRIMED for an id you do not own while admission is not primed. Anything else is 404, never 403. The ETag is the version; If-None-Match is answered 304 while it holds.

Answers 304. Unchanged: the version If-None-Match named is the row’s. No body; the ETag restates the version.

Response headerDescription
ETagThe row’s version, quoted: "<version>", what If-Match takes on a write of the row.
X-Request-IdThe request’s id: your X-Request-Id where you sent a usable one, a fresh id otherwise. An error restates it as error.requestId; quote it when you ask about a request.

Authentication

AuthorizationBearer

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

Path parameters

workspaceIdstringRequired
The workspace id.

Headers

If-None-MatchstringOptional

The ETag you hold, quoted or bare: while it is still the row’s version the read answers 304 with no body, else 200 with the row.

X-Request-IdstringOptional

Your own id for the request: 8 to 128 of [A-Za-z0-9._-]. It becomes the request’s id and is echoed on the response. A value off that grammar is replaced with a fresh id, never refused.

Response

The workspace.
workspaceIdstring
The workspace's id, a UUID. Ids are opaque strings.
slugstringformat: "^[a-z0-9][a-z0-9-]{0,99}$"

The slug, 1 to 100 characters of [a-z0-9-], unique among the owner’s workspaces: minted from the title on create unless you supplied one, and never changed after, so a page URL outlives a rename.

titlestring1-100 characters
The title, 1 to 100 characters, not blank, with no NUL and no unpaired surrogate.
layoutmap from strings to any

The layout: a JSON object whose shape belongs to the code that renders it (keep your own schemaVersion inside it). The API checks that it is an object of at most 256 KiB serialised and never reads inside it; it is served as you last wrote it: the same tree, members in their order, numbers exact.

tagslist of strings

Tags to list by: at most 50, each 1 to 64 characters of [a-z0-9:._-], lower-cased on write and unique.

visibilitystring

Who may read the row: PRIVATE, its owner alone; ORG, the owner’s organisation too, read-only, once organisation admission serves colleagues’ rows. ORG needs a token that names an organisation: without one it is 400. Append-only: tolerate values you don’t know; a write of one this release does not know is 400.

ownedboolean

Whether you own the row. false for a colleague’s ORG workspace, which you can read but not write. The owner’s identity is not on the row.

versionstringformat: "^[0-9]+$"

The row’s version, the ETag’s value: send it as If-Match on a write. A decimal string from one sequence shared by every row.

createdAtNsstringformat: "^[0-9]+$"

When the workspace was created, in epoch nanoseconds; microsecond-exact, so it ends in 000.

updatedAtNsstringformat: "^[0-9]+$"

When the workspace was last written, in epoch nanoseconds; microsecond-exact, so it ends in 000.

Errors

400
Get Workspaces Request Bad Request Error
401
Get Workspaces Request Unauthorized Error
404
Get Workspaces Request Not Found Error
501
Get Workspaces Request Not Implemented Error
503
Get Workspaces Request Service Unavailable Error