💬 SalesByte

Templates

List templates and send them to a phone number via the API.

List templates

GET /api/v1/templates

Query parameters

ParamDescription
statusFilter by status (APPROVED, PENDING, REJECTED)
sourceFilter by source (meta or local)
curl "https://app.salesbyte.in/api/v1/templates?status=APPROVED" \
  -H "Authorization: Bearer YOUR_API_KEY"

Send a template

POST /api/v1/templates/:id/send

Send an approved template to a phone number, with variable substitution.

Request body

{
  "to": "+919876543210",
  "variables": ["Rahul", "Order #1234", "tomorrow"]
}

Parameters

FieldTypeRequiredDescription
tostringRecipient phone number with country code
variablesstring[]Values for {{1}}, {{2}}, etc. in order

Example

curl -X POST https://app.salesbyte.in/api/v1/templates/template-uuid/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+919876543210",
    "variables": ["Rahul", "your order", "tomorrow at 3 PM"]
  }'

Response

{
  "success": true,
  "message_id": "3EB0A1B2C3D4E5"
}

Create a local template

POST /api/v1/templates

Create a Personal WhatsApp template that's ready to use immediately (no Meta review).

{
  "name": "welcome_message",
  "body": "Hi {{name|there}}! Thanks for reaching out. We'll get back to you shortly."
}

On this page