---
title: "Get a published block revision"
canonical: "https://bird.com/docs/api/reference/get-email-block-revision"
---

# Get a published block revision

`GET /v1/email/blocks/{block_id}/languages/{language}/revisions/{revision_id}`

Returns one published revision of the exact block and language, including for archived blocks. To make it the draft again, save the language with `from_revision_id`. A revision that was never published returns a `404` `not_found_error`.

## Servers

- `https://{region}.platform.bird.com`: Regional API endpoint. Use the host for the region your organization is hosted in. Official Bird SDKs and the CLI select it automatically from your API key, so you rarely need to set it by hand.
  - `region`: `us1`, `eu1`. Default: `us1`. The region your organization's data is hosted in.

## Authentication

Use one authentication option:

- `BearerAuth`: HTTP bearer authentication. Pass the API key as a bearer token in the `Authorization` header. Workspace
keys use `bk_{region}_*`; organization master keys use `bm_{region}_*`.
The prefix identifies the region and selects the
API endpoint. Official Bird SDKs and the CLI derive the region from the key.

## Code samples

**TypeScript**

```ts
// Requires email_management:read permission in the target workspace.
const revision = await bird.email.blocks.languages.revisions.get(
  "ebl_01krdgeqcxet5s7t44vh8rt9mg",
  "en",
  "ebr_01krdgeqcxet5s7t44vh8rt9mg",
);
console.log(revision.version_number, revision.fragment.fragment_html);
```

Examples: [TypeScript](/docs/api/reference/get-email-block-revision.ts.md) · [Python](/docs/api/reference/get-email-block-revision.py.md) · [Go](/docs/api/reference/get-email-block-revision.go.md) · [PHP](/docs/api/reference/get-email-block-revision.php.md) · [CLI](/docs/api/reference/get-email-block-revision.cli.md) · [MCP](/docs/api/reference/get-email-block-revision.mcp.md) · [cURL](/docs/api/reference/get-email-block-revision.curl.md)

## Example response `200`

```json
{
  "id": "ebr_01krdgeqcxet5s7t44vh8rt9mg",
  "version_number": 1,
  "serializer_version": 2,
  "authoring_mode": "html",
  "published_by": {
    "id": "key_01krdgeqcxet5s7t44vh8rt9mg",
    "type": "api_key",
    "display_name": "Release pipeline"
  },
  "fragment": {
    "serializer_version": 2,
    "fragment_html": "<table role=\"presentation\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tbody><tr><td lang=\"en\" style=\"font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; line-height: 20px; letter-spacing: normal; text-align: left; text-transform: none; color: #333333; margin: 0; padding: 16px;\"><p style=\"margin: 0;\">Your disclosure text.</p></td></tr></tbody></table>"
  },
  "published_at": "2026-05-25T16:42:01Z",
  "created_at": "2026-05-25T16:42:01Z"
}
```

## Path parameters

- `block_id` (string, required): Block to read or edit.
- `language` (string, required): Exact block language as a BCP-47 tag. No fallback is applied.
- `revision_id` (string, required): Retained published revision to read.

## Header parameters

- `X-Workspace-Id` (string, optional): Workspace context for the request. Required for dashboard authentication and master keys. Workspace keys and access tokens already identify their workspace; send that workspace or omit the header. A different one is rejected.
- `X-Organization-Id` (string, optional): Organization context for the request. Required for dashboard authentication. An API key or access token carries its own organization, so send either that organization or no header at all; a different one is rejected.

## Response body

- `id` (string, required)
- `version_number` (integer, required): Publication number within this block language. A draft's `revision` is the value to send back when saving, not a publication number.
- `serializer_version` (integer, required): Format used to save and render this section: 2 for a section written as HTML, 1 for one built in the Bird dashboard's visual editor.
- `authoring_mode` (string, required)

  How this language is edited. `html` content is written as HTML and can be changed through the API, CLI and MCP. `visual` content is built in the Bird dashboard's visual editor; outside the dashboard, a visual section can still be copied by duplicating its block or restoring a published revision. The mode follows from the stored content and cannot be set directly. New values may be added; treat an unknown value as content you cannot edit through the API, CLI or MCP.

  Possible values (may grow over time): `visual`, `html`
- `source_revision_id` (string): Source-language revision used for this translation. Omitted when untracked.
- `published_by` (object, required): Who published this revision.
- `published_by.id` (string, required): Actor identifier.
- `published_by.type` (string, required)

  New actor types may be added. Treat unrecognized values as future types, not errors.
  - `user`: a member's own session.
  - `api_key`: a workspace API key.
  - `oauth_token`: a token issued to a caller on a member's behalf.
  - `system`: an action we perform without a customer actor.
  - `sso`: an organization's SSO connection.
  - `service_account`: a workspace's connected Integration acting with no member behind it.
  - `automation`: an automation execution in your workspace.

  Possible values (may grow over time): `user`, `api_key`, `oauth_token`, `system`, `sso`, `service_account`, `automation`
- `published_by.display_name` (nullable string): The label the actor is shown under: typically a member's name or email address, or the API key's name. Null when it could not be resolved.
- `published_at` (string, required)
- `created_at` (string, required)
- `fragment` (object, required): One self-contained email section. Version 2 is a section written as HTML and sends `fragment_html` alone; the API, SDKs, CLI and MCP write version 2. Version 1 is reserved for sections built in the Bird dashboard's visual editor, and only the dashboard saves it. A block language keeps the version it was created with.
- `fragment.serializer_version` (integer, required): How this section is written. 2 is HTML written directly, and is the value to send from the API, SDKs, CLI and MCP. 1 is reserved for the Bird dashboard's visual editor; other callers get a `422` for it.
- `fragment.fragment_html` (string, required): Section HTML. Unfinished markup can be saved as a draft; validation checks readiness separately. A version 2 section is one presentation table with one `tbody`, `tr` and `td`, and all layout stays inside that cell. The cell sets `lang` to the block language and its own typography: `font-family`, a `font-size` in pixels, `font-style`, `font-weight`, `line-height`, `letter-spacing`, `text-align` (not `start` or `end`), `text-transform`, `color`, `margin` and `padding`. Root-relative units such as `rem` are refused; use px, em or percentages. Liquid stays balanced inside the cell, cannot use `assign`, `capture`, `increment` or `decrement`, and puts no control tag inside an attribute or style value. `{{ bird.unsubscribe_url }}` appears only as bare text or as the entire `href` of an `<a>`, and never inside an `if !mso` conditional comment, which Outlook skips. No document wrapper, `<style>`, script, form, `class` or `id` attribute. A table nested in the cell needs its own `<tbody>`. Inside a complete Outlook conditional comment, prefixed Office and VML elements such as `v:fill` may self-close, and a balanced `if !mso` conditional comment that shows its content outside Outlook is accepted when it holds no other conditional comment.

## Related resources

- [Should I use a Bird SDK or call the API directly?](/explained/platform/should-i-use-an-sdk-or-call-the-api-directly) (answer)
- [Build your first integration](/learn/paths/integration) (course)
- [Send your first email](/docs/get-started/send-your-first-email) (docs)

[Get an implementation brief](/learn/workspace?topic=api-basics)
