Create template document
POST /template/
Authorization: Bearer <cartat_api_token>
Content-Type: application/jsonExample
{
"name": "invoice_document",
"category": "UTILITY",
"language": "en_US",
"components": [
{
"type": "HEADER",
"format": "DOCUMENT",
"example": {
"header_handle": ["uploaded_document_handle"]
}
},
{
"type": "BODY",
"text": "Hi {{customer_name}}, your invoice document is attached.",
"example": {
"body_text_named_params": [
{
"param_name": "customer_name",
"example": "John"
}
]
}
}
]
}Required validation
Field
Rule