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.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Headers
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.
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 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.
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.
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.
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.
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.
When the workspace was created, in epoch nanoseconds; microsecond-exact, so it ends in 000.
When the workspace was last written, in epoch nanoseconds; microsecond-exact, so it ends in 000.