Documentation
Sign inGet started

List email template versions

GET
/v1/email/templates/{template_id}/versions
curl -X GET "https://us1.platform.bird.com/v1/email/templates/{template_id}/versions" \
  -H "Authorization: Bearer $TOKEN"
Returns every version of the template — the current draft plus all published versions — newest first.
Treść odpowiedzi
data
array of object
wymagane
All versions of the template, newest first.
Pokaż atrybuty podrzędne
data.id
string
wymagane
Template version ID.
data.template_id
string
wymagane
The template this version belongs to.
data.version_number
nullable integer
Sequential published-version number (1, 2, 3…). Null while the version is a draft.
data.status
string
wymagane
Lifecycle status of this version.
data.revision
integer
wymagane
The version's revision counter.
data.created_at
string
wymagane
When this version was created.
data.published_at
nullable string
When this version was published, or null if it has not been published.