For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create template Utility

POST /template/
Authorization: Bearer <cartat_api_token>
Content-Type: application/json

Use UTILITY for transactional templates such as order updates, account alerts, invoices, and delivery notifications.

Example

{
  "name": "invoice_ready",
  "category": "UTILITY",
  "language": "en_US",
  "components": [
    {
      "type": "BODY",
      "text": "Hi {{customer_name}}, your invoice {{invoice_number}} is ready.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "customer_name",
            "example": "John"
          },
          {
            "param_name": "invoice_number",
            "example": "INV-1001"
          }
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Cartat"
    }
  ]
}

Response