Sign inGet Started

List reusable block languages

GET
/v1/email/blocks/{block_id}/languages
// Requires email_management:read permission in the target workspace.
const languages = await bird.email.blocks.languages.list("ebl_01krdgeqcxet5s7t44vh8rt9mg");
for (const language of languages.data) {
  console.log(language.language, language.revision, language.published_revision_id);
}
Antwort200
{
  "data": [
    {
      "language": "pt-BR",
      "revision": 1,
      "authoring_mode": "html",
      "source_revision_id": "ebr_01krdgeqcxet5s7t44vh8rt9mg",
      "published_revision_id": "ebr_01krdgeqcxet5s7t44vh8rt9mg",
      "created_at": "2026-05-20T09:14:52Z",
      "updated_at": "2026-05-25T16:42:01Z"
    }
  ]
}

Returns the block's languages, ordered by language tag, without their content. Each has its draft revision, its authoring_mode and its current published revision. A block holds at most 25 languages.

Parameter

block_idstring

Block to read or edit.

Antwort-Payload

data
array of object
erforderlich
Untergeordnete Attribute anzeigen
data.language
string
erforderlich

A language tag in BCP-47 form, for example en or pt-BR.

data.revision
integer
erforderlich

Draft revision to send back when saving or publishing this language, as last returned. It is not a publication number; a published revision is a separate record numbered by version_number.

data.authoring_mode
string
erforderlich

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

data.source_revision_id
string

Published source-language revision used for this translation. Omitted when untracked.

data.published_revision_id
string

Current published revision for this exact language. Omitted before publication.

data.created_at
string
erforderlich
data.updated_at
string
erforderlich

Weiter mit der Dokumentation, Anleitungen und Beispielen zu diesem Thema.