List reusable block languages
/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);
}# Requires email_management:read permission in the target workspace.
languages = client.email.blocks.languages.list("ebl_01krdgeqcxet5s7t44vh8rt9mg")
for language in languages.data:
print(language.language, language.revision, language.published_revision_id)// Requires email_management:read permission in the target workspace.
client, err := bird.NewClient(option.WithAPIKey(os.Getenv("BIRD_API_KEY")))
if err != nil {
log.Fatal(err)
}
languages, err := client.Email.Blocks.Languages.List(context.Background(), "ebl_01krdgeqcxet5s7t44vh8rt9mg")
if err != nil {
log.Fatal(err)
}
for _, language := range languages.Data {
fmt.Println(language.Language, language.Revision)
}// Requires email_management:read permission in the target workspace.
$languages = $bird->email->blocks->languages->list('ebl_01krdgeqcxet5s7t44vh8rt9mg');
foreach ($languages->getData() ?? [] as $language) {
echo $language->getLanguage(), ' ', $language->getRevision(), "\n";
}bird email blocks languages list <block-id>curl -X GET "https://us1.platform.bird.com/v1/email/blocks/{block_id}/languages" \
-H "Authorization: Bearer $TOKEN"{
"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.
Parametri
block_idstringBlock to read or edit.
Payload di risposta
dataMostra attributi secondari
data.languageA language tag in BCP-47 form, for example en or pt-BR.
data.revisionDraft 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_modeHow 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_idPublished source-language revision used for this translation. Omitted when untracked.
data.published_revision_idCurrent published revision for this exact language. Omitted before publication.
data.created_atdata.updated_atRisorse correlate
Continua con la documentazione, le guide e gli esempi per questo argomento.