API
버전 하나 읽기
본문까지 담긴 리비전 하나입니다. 복원하지 않고도 예전 버전에 무엇이 들어 있는지 볼 수 있습니다.
GETapi.openemail.uk/templates/{id}/versions/{version}
본인 키로 워크스페이스에 실제 호출을 실행합니다.
GET /templates/{id}/versions/{version}
본문까지 담긴 리비전 하나입니다. 복원하지 않고도 예전 버전에 무엇이 들어 있는지 볼 수 있습니다.
예시
templates:read가 필요합니다. 버전 목록은 본문을 빼고 돌려줍니다. 본문은 여기에 있습니다.
curl "$OE/templates/order-shipped/versions/3" -H "$AUTH"{ "object": "template_version", "id": "tplv_5d31c2a8…", "templateId": "tpl_9c1f0a4b7e05d3862c1f0a44", "version": 3, "state": "published", "engine": "blocks", "subject": "Order {{orderId}} is on its way", "slots": [], "props": [{ "key": "orderId", "kind": "text", "required": true, "default": null }], "document": { "preview": "Your order is on its way", "tailwind": false, "fonts": [], "body": [{ "kind": "Heading", "text": "Order {{orderId}} is on its way" }], "slots": [], "props": [{ "key": "orderId", "kind": "text", "required": true, "default": null }] }, "html": null, "publishedAt": "2026-07-14T09:12:44.000Z", "createdAt": "2026-07-14T09:10:02.000Z"}버전을 읽어도 아무것도 바뀌지 않습니다. 복원하면 초안이 옮겨가므로, 비교나 감사, 이미 교체한 디자인에서 블록 하나를 꺼내 올 때는 이 호출을 쓰세요. 되돌리는 것은 여전히 POST /templates/{id}/versions/{version}/restore입니다.
document와 html 중 내용이 담기는 것은 하나뿐이고, 어느 쪽인지는 engine이 알려 줍니다. html은 발행 시점의 정화 처리 이전, 보낸 그대로의 마크업입니다. 즉 PATCH로 되돌려 보낼 값이지 수신자가 받은 것이 아닙니다.
아무도 발행하지 않은 번호나 삭제된 번호는 404 template_version_not_found입니다. 번호는 재사용되지 않으므로 삭제된 번호는 그대로 사라집니다.