Sign inGet Started

Get a published block revision

GET
/v1/email/blocks/{block_id}/languages/{language}/revisions/{revision_id}
// 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);
प्रतिक्रिया200
{
  "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"
}

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.

पैरामीटर

block_idstring

Block to read or edit.

languagestring

Exact block language as a BCP-47 tag. No fallback is applied.

revision_idstring

Retained published revision to read.

Response Payload

id
string
आवश्यक
version_number
integer
आवश्यक

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
आवश्यक

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
आवश्यक

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
आवश्यक

Who published this revision.

चाइल्ड एट्रिब्यूट दिखाएँ
published_at
string
आवश्यक
created_at
string
आवश्यक
fragment
object
आवश्यक

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.

चाइल्ड एट्रिब्यूट दिखाएँ

इस विषय के लिए दस्तावेज़, गाइड और उदाहरणों के साथ आगे बढ़ें।