Get Template (Preview)
Preview. This read projects the current Template data model into the upcoming public contract and may change slightly before general availability.
Authorization
bearerAuth In: header
Path Parameters
Unique identifier for the resource.
uuidQuery Parameters
Additional fields to include in the response. Use repeated query syntax: include=foo&include=bar.
Response Body
application/json
curl -X GET "https://api.getmateo.com/v1/templates/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "key": "string", "language": "string", "type": "authentication", "channel_type": "email", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "latest_version": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc", "version": 9007199254740991, "published": true, "request_approvals": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }, "published_version": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc", "version": 9007199254740991, "published": true, "request_approvals": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }}Duplicate Template (Preview) POST
Schema preview only. This operation will be released soon. Every request currently returns HTTP 501 Not Implemented. When released, this operation will copy the source Template's language, type, channel, and highest-numbered version into unpublished version 1 of a new Template. Components, canonical Files, and approval intent will be copied. Version history, publication state, and provider approval records will not be copied. The name defaults to `<source name> (copy)`; the key defaults to a collision-resistant derivative of the source key. The operation is atomic and will not expose a partially copied Template or component graph.
Get Template Version (Preview) GET
Preview. This read projects the current Template data model into the upcoming public contract and may change slightly before general availability.