List Templates (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
Query Parameters
Unique identifier for the resource.
Filters by any of the supplied id values.
Stable key used to identify the resource.
Filters by any of the supplied key values.
Type of the resource.
Filters by any of the supplied type values.
Filters resources by type using the not_in operator.
Filters resources by language.
Filters by any of the supplied language values.
Filters resources by channel type.
Filters by any of the supplied channel type values.
Filters resources by channel type using the not_in operator.
Filters resources by archived.
Filters resources by updated at using the gte operator.
date-timeFilters resources by updated at using the lte operator.
date-timeMaximum number of resources to return.
100 <= value <= 100Opaque token returned by a previous page request.
1 <= lengthAdditional 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"{ "object": "list", "data": [ { "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" } } ], "next_page_url": "string", "previous_page_url": "string"}List Template Versions (Preview) GET
Preview. This read projects the current Template data model into the upcoming public contract and may change slightly before general availability.
Publish Template Version (Preview) POST
Schema preview only. This operation will be released soon. Every request currently returns HTTP 501 Not Implemented.