Skip to main content
POST
/
business_accounts
/
{business_account_id}
/
templates
Create a template
curl --request POST \
  --url https://whatsrb.com/api/v1/business_accounts/{business_account_id}/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "template": {
    "name": "<string>",
    "category": "MARKETING",
    "language": "en_US",
    "header_type": "TEXT",
    "components": {},
    "variable_examples": {}
  }
}
'
{
  "data": {
    "id": "<string>",
    "meta_template_id": "<string>",
    "name": "<string>",
    "category": "MARKETING",
    "status": "approved",
    "language": "<string>",
    "header_type": "<string>",
    "components": {},
    "variable_examples": {},
    "rejection_reason": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key from the WhatsRB dashboard. Format: Bearer wrb_live_xxx

Path Parameters

business_account_id
string
required

Body

application/json
template
object
required

Response

Created

data
object