---
title: "Blocks & workspaces, MailKaro Docs"
description: "Blocks & workspaces in MailKaro: reference endpoints for the built-in blocks and your workspaces."
---

# 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](https://docs.mailkaro.com/elements).

## 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](https://docs.mailkaro.com/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](https://docs.mailkaro.com/custom-tools)). To check a design, validate it against the [schema](https://docs.mailkaro.com/design-schema) rather than this list.

## Workspaces

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

Source: https://docs.mailkaro.com/blocks-api
