Sign inGet Started

Get an Apple Messages template version's language

GET
/v1/amb/templates/{template_ref}/versions/{version_id}/languages/{language}
const language = await bird.amb.templates.versions.languages.get(
  "bird_order_update",
  "amv_01ky4x8e4genzb7way45txfkm1",
  "en",
);
console.log(language.language, language.text);
Réponse200
{
  "language": "en",
  "text": {
    "body": "Your order {{ order_number }} is on its way."
  },
  "revision": 1,
  "content_hash": "sha256:3d948846f5f773fb7bed8ab81b57f3d0ff2cbff24cb549718f4d389f1ab0300a",
  "updated_at": "2026-09-10T09:00:00Z"
}

Returns one language's full text, revision, content hash, and update time. The response echoes the language in its canonical BCP-47 form.

Paramètres

template_refstring

The template's ID (amt_…) or slug.

version_idstring

The version that holds the language.

languagestring

The language as a BCP-47 tag. Case and separator differences are accepted and canonicalized.

Contenu de la réponse

language
string
obligatoire

The language in canonical BCP-47 form.

text
object

Stored text and files. Includes its {{ variable }} placeholders.

Afficher les attributs enfants
rich_link
object

Stored link preview. Includes its {{ variable }} placeholders.

Afficher les attributs enfants
interactive
object

Stored interaction. Includes its {{ variable }} placeholders.

Afficher les attributs enfants
sign_in
object

Stored sign-in message. Includes its {{ variable }} placeholders.

Afficher les attributs enfants
sign_in.received_message
object
obligatoire

The sign-in request bubble the customer receives.

Afficher les attributs enfants
sign_in.reply_message
object
obligatoire

The bubble Messages shows after the customer signs in.

Afficher les attributs enfants
sign_in.reply_message.title
string
obligatoire

Text shown on the message bubble.

sign_in.reply_message.subtitle
string

Secondary text shown below the title.

sign_in.reply_message.style
string

Bubble layout. Apple defaults to icon when omitted and ignores it for custom iMessage apps.

Possible values: icon, small, large

sign_in.reply_message.image_identifier
string

Identifier of an image in interactive.images, or interactive_reply.images on a reply. Apple ignores it for custom iMessage apps.

sign_in.reply_message.image_title
string

Title shown over an attached image in a custom iMessage app bubble.

sign_in.reply_message.image_subtitle
string

Subtitle shown over an attached image in a custom iMessage app bubble.

sign_in.reply_message.secondary_subtitle
string

Right-aligned title in a custom iMessage app bubble.

sign_in.reply_message.tertiary_subtitle
string

Right-aligned subtitle in a custom iMessage app bubble.

sign_in.images
array of object

Images the bubbles reference by image_identifier.

Afficher les attributs enfants
sign_in.confirmation_text
string

Text Bird sends as a message after the customer's device confirms the sign-in. Omit it to send no confirmation. It may contain {{ }} placeholders.

revision
integer
obligatoire

This language's revision counter, used for concurrent-edit checks on draft writes.

content_hash
string
obligatoire

A fingerprint of Apple Messages template content, prefixed with its algorithm. Compare it within this API version to identify the exact source without transferring it.

updated_at
nullable string
obligatoire

When this language was last saved. Null for a built-in template.

Poursuivez avec la documentation, les guides et les exemples sur ce sujet.