API campaigns

Save a template once and send it from your website, Zapier or Pabbly with one call — Vatli adds the contact, tags them and fills the blanks.

Updated 21 Oct 2026

Who can do this: Owner and AdminPlan: Business and Enterprise (and the free trial)Where: Settings → API campaignsNeed: An API key with messages:send

An API campaign is a saved template plus rules for its blanks. Your website or a tool like Zapier calls one address with the customer’s number, and Vatli does the rest: creates or updates the contact, adds tags and sends the template.

Create one

  1. Go to Settings → API campaigns and click New.
  2. Enter a Name — it’s used in the address, e.g. order-shipped.
  3. Choose an approved template.
  4. For each blank, choose From the API call (give it a name like order_id) or Same text every time. You can also set a fallback if the call leaves it empty.
  5. Optionally choose tags to add to everyone it’s sent to, and a default media link for a header.
  6. Save. Click Copy example call to get a ready-made request.

Send it

POST https://app.vatli.co/api/v1/campaigns/order-shipped/send
Authorization: Bearer <your API key>

{
  "to": "+919876543210",
  "name": "Asha",
  "params": { "order_id": "A12" },
  "attributes": { "city": "Patna" },
  "tags": ["Ordered"],
  "media_url": "https://…/invoice.pdf"
}

Only to is required. A successful call returns 201 with the message, contact and conversation IDs. See API keys to create a key.