ドキュメント本文へスキップ
API

バージョンの一覧

すべてのリビジョンを新しい順に、各バージョンが期待する宣言済みキーとともに返します。

GETapi.openemail.uk/templates/{id}/versions

実際の呼び出しを、ご自身のキーで自分のワークスペースに対して実行します。

GET /templates/{id}/versions

すべてのリビジョンを新しい順に、各バージョンが期待する宣言済みキーとともに返します。

templates:read が必要です。ここでは本文は省かれます。1 つのバージョンの本文はテンプレート自体から読んでください。

curl
curl "$OE/templates/order-shipped/versions" -H "$AUTH"
レスポンス
{  "object": "list",  "data": [    {      "object": "template_version",      "id": "tplv_5d31c2a8…",      "templateId": "tpl_9c1f0a4b7e05d3862c1f0a44",      "version": 4,      "state": "draft",      "engine": "html",      "subject": "Order {{orderId}} is on its way",      "slots": [],      "props": [{ "key": "orderId", "kind": "text", "required": true, "default": null }],      "publishedAt": null,      "createdAt": "2026-08-28T16:03:10.000Z"    }  ]}

「6 月に実際に何を送ったのか」に答えるのがこの呼び出しです。props は本文と一緒にバージョン管理されるので、古いメッセージは今日の宣言ではなく当時の宣言に照らして読めます。