Sign inGet started

Get an SMS template version's language

GET
/v1/sms/templates/{template_ref}/versions/{version_id}/languages/{language}
const language = await bird.smsTemplates.versions.languages.get(
  "bird_otp_verification",
  "smv_01ky4x8e4genzb7way45txfkm1",
  "en",
);
console.log(language.language, language.text);
响应200
{
  "language": "en",
  "text": "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.
参数
template_ref
string
The template's ID (smt_…) or slug.
version_id
string
The version that holds the language.
language
string
The language as a BCP-47 tag. Case and separator differences are accepted and canonicalized.
响应载荷
language
string
必填
The language in canonical BCP-47 form.
text
string
必填
Stored template text, including its {{ variable }} placeholders.
revision
integer
必填
This language's revision counter, used for concurrent-edit checks on draft writes.
content_hash
string
必填
A fingerprint of SMS template text, prefixed with its algorithm. Compare it within this API version to identify the exact source without transferring it.
updated_at
nullable string
必填
When this language was last saved. Null for a built-in template.