Blocks & workspaces

Rendering

Blocks & workspaces

Reference endpoints for the built-in blocks and your workspaces.

bash
GET /v3/blocks       → { blocks: [ { type, title, category }, … ] }
GET /v3/workspaces   → { workspaces: [ { id }, … ] }

Both are token-authed. The block catalog matches the editor's palette.

Which key to use

Token-authed here means a secret server key (sk_live_…) as a bearer token or as ?token=. A publishable pk_live_ token, or an inactive key, gets 401 invalid_token. See authentication.

What the block catalog holds

Each entry has a type, a title and a category: text, media, content, layout or advanced. The type is the value stored in a design, which is not always the palette name: the HTML block is raw-html, Menu is navigation and Timer is countdown.

The list has 16 types. Four more can appear in a design but are not listed: saved-template, grid, page-break and custom (your custom tools). To check a design, validate it against the schema rather than this list.

Workspaces

/v3/workspaces returns one entry, the organization the key belongs to, as { "workspaces": [ { "id": "<organization id>" } ] }. Use it to confirm which organization a key points at.