Lista os templates da organização
GET/v2/templates
Devolve os templates da organização da credencial. Filtros: status, category, language, numberId, limit, skip. Ordenado por createdAt desc.
Use isto para descobrir o id, o language e as variáveis (em components) antes de enviar uma mensagem de template.
A organização vem da credencial — não existe parâmetro para escolhê-la, e o isolamento entre tenants é imposto pelo Mongo Guardian.
Parameters
| Field | In | Type | Description |
|---|---|---|---|
statusoptional | query | string | Values:draftsubmittedpendingapprovedrejectedpauseddisabled |
categoryoptional | query | string | Values:marketingutilityauthentication |
languageoptional | query | string | Values:pt-BRen-USes-ES |
numberIdoptional | query | string | |
limitoptional | query | integer | |
skipoptional | query | integer |
Responses
200Default ResponseResponse fields and example
Field Type Description itemsrequiredobject[]items[].idrequiredstringitems[].organizationIdrequiredstringitems[].numberIdrequiredstringitems[].namerequiredstringitems[].languagerequiredstringValues: pt-BRen-USes-ESitems[].categoryrequiredstringValues: marketingutilityauthenticationitems[].statusrequiredstringValues: draftsubmittedpendingapprovedrejectedpauseddisableditems[].componentsrequiredobject[]items[].components[].typerequiredstringitems[].components[].payloadoptionalanyitems[].headerExampleUrloptionalstring · uriitems[].metaTemplateIdoptionalstringitems[].versionrequiredintegeritems[].rejectionReasonoptionalstringitems[].createdAtrequiredstring · date-timeitems[].updatedAtrequiredstring · date-timetotalrequiredintegerJSON{ "items": [ { "id": "string", "organizationId": "string", "numberId": "string", "name": "string", "language": "pt-BR", "category": "marketing", "status": "draft", "components": [ { "type": "string", "payload": null } ], "headerExampleUrl": "https://example.com", "metaTemplateId": "string", "version": 1, "rejectionReason": "string", "createdAt": "2026-10-16T12:00:00.000Z", "updatedAt": "2026-10-16T12:00:00.000Z" } ], "total": 0}
400RFC 7807 problem details for BAD_REQUEST (400).401RFC 7807 problem details for UNAUTHORIZED (401).403RFC 7807 problem details for FORBIDDEN (403).
Error responses follow RFC 7807 (application/problem+json), with a stable code in the code field. See the error codes
curl example
curl 'https://api.messages.ccxcompany.co/v2/templates' \ -H "Authorization: Bearer $CCX_API_KEY"