Documentation
All pages
.md
Built and tested. The public service opens with the platform launch; until then API keys are not issued to customers.

Templates

A template is a message whose text Meta approves in advance. It is the only way to start a conversation, or to write after the 24-hour window has closed.

Create and submit

Create templates in the dashboard (Templates > New template) and press submit: the platform sends it to Meta for review. Statuses are synced from Meta (pending, approved, rejected, with the reason). Creating templates through the API is not available yet, see the Roadmap.

Categories (the price differs per category and country, see Pricing): marketing, utility, authentication.

List templates

GET https://app.easytawasul.com/api/v1/templates
GET https://app.easytawasul.com/api/v1/templates?status=approved
{
  "data": [
    {
      "id": "tpl_4", "name": "order_confirmation", "language": "ar", "category": "utility", "status": "approved",
      "components": [{ "type": "BODY", "text": "أهلًا {{1}}، طلبك {{2}} تم تسجيله." }],
      "rejected_reason": null
    }
  ]
}

Get one

GET /v1/templates/tpl_4

404 with code template.not_found if it does not exist in your workspace.

Use a template

Send it with POST /v1/messages: template.name and template.language must match an approved template; template.variables fills {{1}}, {{2}} in order.