List templates with their cost
The approved templates of the provider's WhatsApp numbers with their variables and what one send costs a sub-customer in credits: the template's language's own cost, else the template's cost for every language, else 1.
Scope: one of partner.manage, partner.read, partner.send. Rate limit: 300 requests per minute per API key.
AuthorizationBearer <msk_live_…>An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.
Scope: partner.read
Templates
application/json- response
data*array<>meta*curl -X GET 'https://app.messora.tech/api/v1/partner/templates'{ "data": [ { "account_id": "019a8c2e-4f1b-7a00-9c3d-5e7a10000401", "account_name": "EasyTrade Haberci", "category": "UTILITY", "company_name": { "source": "mapped", "variable": "body.1" }, "cost_source": "template", "credits": 2, "language": "tr", "name": "invoice_ready", "variables": { "body": [ "1", "2" ], "header": [], "named": false } } ], "meta": { "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff" }}Get a send GET
The send's delivery status, its timestamps and what happened to its credits. Scope: one of partner.manage, partner.read, partner.send. Rate limit: 300 requests per minute per API key.
Set a template's company-name variable PUT
Names the template variable that every send fills with the sub-customer's display_name, for every language of the template: header.<key> or body.<key>, where the key is the variable's name ({{firma}}) or number ({{1}}). null removes the choice; then a variable named company_name is filled, if the template has one. A value the request gives for that variable always wins. Scope: partner.manage. Rate limit: 300 requests per minute per API key.