Autobot360 API

Create customers, let them connect their own WhatsApp Business Account, and send messages through it. Base URL: https://wa.autobot360.com/v1. Requests and responses are JSON; field names are snake_case.

Authentication

Create a key in API keys and send it as a bearer token. Keys are shown once and stored only as a hash. ab360_test_… keys are sandbox: requests are validated and recorded but nothing is sent to WhatsApp. ab360_live_… keys send real messages. Each key has scopes, an optional IP allow-list (single IPs or CIDR ranges), an expiry and a rate limit.

curl https://wa.autobot360.com/v1/partner/customers \
  -H "Authorization: Bearer ab360_live_XXXXXXXX_..."

Customers

A customer is a business you serve (a college, a clinic). Each has its own workspace, users, WhatsApp connection, templates and contacts. Use external_customer_id for your own id; it must be unique within your account, and you can use it anywhere a customer_id is accepted. Scopes: customers:read, customers:write.

POST /v1/partner/customers
{ "organization_name": "St Xavier College", "owner_name": "A. Dean", "email": "dean@sxc.edu",
  "external_customer_id": "sxc-1", "city": "Pune", "plan_code": "STARTER" }

GET  /v1/partner/customers?status=active&search=xavier&limit=25&cursor=...
GET  /v1/partner/customers/{customer_id}
PATCH /v1/partner/customers/{customer_id}
POST /v1/partner/customers/{customer_id}/suspend   { "reason": "unpaid" }

A customer needs an active plan to send messages: pass plan_code when creating them.

Connecting WhatsApp

Customers connect their own WhatsApp Business Account through Meta's Embedded Signup. Autobot360 never pools numbers across customers.

POST /v1/partner/customers/{customer_id}/whatsapp/onboarding   (scope whatsapp:onboard)
-> { "onboarding": { "invite_url": "...", "email_sent": false, "expires_in_days": 7 } }

GET  /v1/partner/customers/{customer_id}/whatsapp               (scope whatsapp:read)
-> { "status": "connected", "connections": [ { "waba_id": "...", "phone_numbers": [ ... ] } ] }

The owner opens the invitation, creates a password, and completes the Meta flow in their workspace. Listen for whatsapp.connected or poll the status endpoint. Statuses: not_connected, connected, token_expired, error.

Sending messages

POST /v1/messages              (scope messages:send)
Idempotency-Key: exam-result-2026-001
{
  "customer_id": "sxc-1",
  "phone_number_id": "META_PHONE_NUMBER_ID",   // optional if the customer has one number
  "to": "919876543210",
  "type": "template",
  "template": { "name": "exam_result_notification", "language": "en",
    "components": [ { "type": "body", "parameters": [ { "type": "text", "text": "Asha" } ] } ] },
  "reference_id": "exam-result-2026-001"
}

202 -> { "success": true, "message_id": "msg_...", "reference_id": "exam-result-2026-001", "status": "accepted" }

Before anything is sent the server checks, in order: the customer is yours and active; their WhatsApp connection is live; the phone number belongs to that customer; the template is approved and its parameters match; the recipient has not opted out (and, for marketing templates, has a recorded opt-in); free-form text is inside the 24-hour window; the customer's plan and wallet allow it. Any failure returns an error and sends nothing.

POST /v1/consent              (scope customers:write)
{
  "customer_id": "sxc-1",
  "phone": "919876543210",
  "action": "opt_in",                      // or "opt_out"
  "source": "web_form",                    // manual | csv_import | web_form | api | qr | click_to_whatsapp | agent
  "evidence": "Ticked the WhatsApp updates box at checkout, order 1042, 3 Mar 2026"
}

201 -> { "success": true, "recorded": true, "state": "opted_in" }
GET /v1/consent?customer_id=sxc-1&phone=919876543210   -> state + full history

Marketing templates are only sent to contacts with a recorded opt-in. An opt-in must carry evidence (how and when the person agreed). Each record is stored permanently with its time and a tamper-evident hash chain. When a contact replies STOP, UNSUBSCRIBE or similar, they are opted out of all messages automatically and you receive a contact.opted_out event. START opts them back in. Repeating a request that changes nothing returns 200 with recorded: false.

Idempotency. Send an Idempotency-Key header (up to 128 characters). Repeating the same request returns the original result with idempotent_replay: true and sends nothing again; reusing a key with a different body is an error. After a failed send, retry with a new key.

POST /v1/messages/bulk   { "messages": [ { ...same as above... }, ... ] }   // up to 100, 207 with per-item results
GET  /v1/messages/{message_id}      -> status: accepted | sent | delivered | read | failed
GET  /v1/messages?customer_id=...&reference_id=...&limit=25&cursor=...

Phone numbers, connections and templates (scopes whatsapp:read, templates:read, templates:sync): GET /v1/phone-numbers?customer_id=, GET /v1/whatsapp/connections?customer_id=, GET /v1/whatsapp/templates?customer_id=, GET /v1/whatsapp/templates/{id}?customer_id=, POST /v1/whatsapp/templates/sync { "customer_id": "..." }. Usage: GET /v1/partner/usage?from=&to=.

Webhooks

Register HTTPS endpoints in Webhooks or with POST /v1/webhooks (scope webhooks:manage). The signing secret is shown once. Endpoints must resolve to public addresses.

{ "id": "evt_9f2c...", "type": "message.delivered", "created_at": "2026-11-17T08:30:00Z",
  "data": { "customer_id": "...", "message_id": "msg_...", "reference_id": "exam-result-2026-001", "livemode": true } }

Events: customer.created, customer.updated, customer.suspended, contact.opted_in, contact.opted_out, whatsapp.connected, whatsapp.disconnected, whatsapp.connection_failed, template.approved, template.rejected, message.accepted, message.sent, message.delivered, message.read, message.failed, campaign.completed, usage.threshold_reached (partner wallet falls below its low-balance level), invoice.created, invoice.paid, payment.failed (plan fee could not be charged). whatsapp.disconnected fires when Meta reports the customer's access token is no longer valid.

Verify every delivery. The header Autobot360-Signature: t=<unix>,v1=<hex> is HMAC-SHA256 of t + "." + raw body with your signing secret. Reject old timestamps (replay protection) and de-duplicate on the event id, which stays the same across retries.

import crypto from "crypto";

function verify(secret, header, rawBody, toleranceSec = 300) {
  const p = Object.fromEntries(header.split(",").map((s) => s.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(p.t)) > toleranceSec) return false;
  const expected = crypto.createHmac("sha256", secret).update(p.t + "." + rawBody).digest("hex");
  return p.v1.length === expected.length && crypto.timingSafeEqual(Buffer.from(p.v1), Buffer.from(expected));
}

Respond with any 2xx within 10 seconds. Otherwise we retry after 30 s, 2 min, 10 min, 1 h, 6 h and 24 h (7 attempts), then mark the delivery failed. Failed deliveries can be replayed from the portal; a replay keeps the original event id.

White-label: your brand, your domain

White-label lets your customers use the platform under your name, logo, colour and web address, with no Autobot360 branding. It works for the dashboard people use, not only the API.

What your customers see

  • Your brand name, logo and colour on the sign-in page, register page and the whole customer dashboard.
  • Your name in the browser tab, and your logo as the tab icon.
  • Emails (invitations, team invites, password reset, security alerts) sent from your name, with links to your domain.
  • Your support email and footer text.

What stays the same: GST tax invoices stay in Autobot360's name because it is the legal seller, and Meta's own sign-in window shows Meta's wording.

Set it up in 5 steps

  1. Turn it on. Open White-label and press Enable white-label. It is included in the Growth plan and above. If you are on Starter, ask us to upgrade you. If Autobot360 turned it off for your account, contact support.
  2. Save your brand. Enter your brand name (required), a colour and a logo link (https). Under More options add a support email, support link, email sender name and footer text. The preview on the right shows the sign-in page and the dashboard as you type.
  3. Add your domain. Use a name you own, such as app.yourbrand.com Always use a subdomain (app., dashboard., chat.), never your bare domain. The bare domain usually hosts your website, and the DNS standard does not allow the record we need next to your other records. Bare domains are refused. Names that belong to Autobot360 are not allowed.
  4. Add two DNS records where your domain is managed (your registrar or DNS host). The page shows the exact values to copy:
    TXT    _autobot360-verify.app.yourbrand.com   ->  the verification value shown on the page
    CNAME  app.yourbrand.com                      ->  wa.autobot360.com
    Press Check DNS records. The page also re-checks every 30 seconds. DNS can take a few minutes, sometimes longer. When it turns verified, your domain is live and gets a secure (HTTPS) certificate automatically on first visit.
  5. Invite customers. Add a customer and press Invite owner. The invitation email comes from your brand and links to your domain.

Adding the DNS records, by provider

Use the short Name the page shows (for app.yourbrand.com that is app and _autobot360-verify.app). Pick your provider:

Cloudflare · dash.cloudflare.com

  1. Sign in to Cloudflare and click your domain.
  2. Open DNS, then Records, then Add record.
  3. TXT record: Type TXT. Name = the first Name shown above. Content = the Value shown above. Save.
  4. CNAME record: Type CNAME. Name = the second Name shown above (for example app). Target = wa.autobot360.com.
  5. Set Proxy status to DNS only (a GREY cloud, not orange). Save.

Tip: An orange cloud hides our address, so verification keeps failing. Click the cloud until it is grey.

GoDaddy · dcc.godaddy.com

  1. Sign in to GoDaddy, open My Products, find your domain and click DNS.
  2. Click Add New Record.
  3. TXT record: Type TXT. Name = the first Name shown above. Value = the Value shown above. Save.
  4. Click Add New Record again. CNAME record: Type CNAME. Name = the second Name shown above (for example app). Value = wa.autobot360.com. Save.

Tip: If a record with the same name already exists (an old A or CNAME for app), delete it first, or GoDaddy will refuse the new one.

Namecheap · namecheap.com

  1. Sign in to Namecheap, open Domain List and click Manage next to your domain.
  2. Open the Advanced DNS tab and click Add New Record.
  3. TXT record: Type TXT Record. Host = the first Name shown above. Value = the Value shown above. Save.
  4. CNAME record: Type CNAME Record. Host = the second Name shown above (for example app). Target = wa.autobot360.com. Save.

Tip: Namecheap calls the Name field "Host". Use only the short name, not the full domain.

Other provider · your registrar or DNS host

  1. Find the DNS settings (sometimes called DNS Zone, DNS Management or Name Servers) where you bought the domain.
  2. Add a TXT record with the first Name and the Value shown above.
  3. Add a CNAME record with the second Name (for example app) pointing to wa.autobot360.com.
  4. If the provider rejects the short name, try the full name shown in brackets. A trailing dot is optional.

Tip: If your DNS is hosted somewhere other than where you bought the domain, add the records at the place named in your domain's Name Servers.

Check that it works

  1. Press Check DNS records. The domain turns verified.
  2. Press Test my site. You should see "Your secure site is live." The first test can take a few seconds while the certificate is issued.
  3. Open your address in a private window. You should see your name, logo and colour on the sign-in page, and a padlock in the address bar.
  4. Invite a test customer and open the email. It should come from your brand and link to your domain.

Before you invite customers: checklist

  • ☐ White-label enabled (Growth plan or above)
  • ☐ Brand name, colour and logo saved
  • ☐ Support email set (customers see it in the footer)
  • ☐ Domain verified and "Test my site" passes
  • ☐ Customer sign-up decided: on with approval, on without, or invitation only
  • ☐ Retail rates set under Billing & wallet, so Reports show your margin
  • ☐ Switch on your Overview shows On

Questions

Can I use my main website address?
No. Use a subdomain such as app.yourbrand.com. Your main address keeps serving your website.
Do my customers need their own domain?
No. They all use yours. You add one domain, and every customer you invite or approve signs in there.
Does my customer connect their own WhatsApp number?
Yes. Each customer connects their own WhatsApp Business Account through Meta, in their own workspace. Numbers are never shared between customers.
Can I have more than one domain?
Yes, up to 5. They all show the same brand.
What if I change my logo or colour?
Save it on the White-label page. It shows on your domain within about a minute.
What happens if I remove a domain?
People on that address no longer see your brand. Customers can still sign in at the main Autobot360 address.
Can I turn it off temporarily?
Yes. Use the white-label switch on your Overview. Your brand and domain are kept.

Let customers sign themselves up (optional)

In Customer sign-up on the White-label page, tick Allow self-service sign-up. People then see a register page on your domain and become your customers. Choose whether to approve each sign-up first (they wait as Pending in Customers until you press Approve and activate) and which starting plan they begin on. Your customer limit still applies. With sign-up off, your domain is by invitation only.

Who can sign in on your domain

Only you, your team and your own customers. Other Autobot360 users cannot sign in there, and your customers cannot sign in on another partner's domain.

The on/off switch

On your Overview and on the White-label page there is a White-label dashboard switch. Off shows the standard platform look on your domain and sends emails under the platform's name; your saved brand is kept, so you can switch it back on any time. The domain itself stays verified.

Reports and team

Reports shows usage and margin for each customer over any date range, with a CSV download and a printable report that carries your logo. Team lets you add people as Admin (everything), Manager (customers), Agent or Viewer (read-only).

If something is not working

ProblemWhat to check
Enable button is missingYour plan is below Growth, or Autobot360 turned it off. The page tells you which.
Domain stays Pending or FailedThe TXT record name must match exactly, including _autobot360-verify. The CNAME must point to wa.autobot360.com. Some DNS hosts add your domain to the name automatically; enter only the part before it if so.
"Name already in use" warningThat name already points somewhere (for example your website). Pointing it to us would take that site offline. Use a different subdomain.
Domain verified but browser shows a security errorThe first visit requests the certificate and can take a few seconds. If it persists, contact support.
Customers still see Autobot360They are on wa.autobot360.com instead of your domain, the white-label switch is off, or the brand is not saved yet. Emails still reach them from your name even when they use the main site.
Sign-up page says "by invitation"Self-service sign-up is off. Turn it on under Customer sign-up.

Errors

{ "success": false, "error": { "code": "template_not_approved", "message": "...", "request_id": "req_..." } }
HTTPCodesMeaning
400 / 422invalid_json · invalid_requestBody is not JSON, or fields failed validation (see error.details.fields).
401unauthorized · key_revoked · key_expiredMissing, unknown, revoked or expired API key.
402subscription_inactive · wallet_insufficient · limit_reachedThe customer's plan or wallet blocks sending, or a partner limit is reached.
403insufficient_scope · ip_not_allowed · partner_not_active · api_access_disabled · customer_not_active · contact_opted_out · consent_requiredNot permitted. contact_opted_out and consent_required protect recipients and are never bypassed.
404customer_not_found · phone_number_not_found · template_not_found · message_not_foundThe id does not exist for your account (ids belonging to other partners look the same).
409whatsapp_not_connected · whatsapp_token_expired · conflict · already_connectedThe customer must (re)connect WhatsApp, or the resource already exists.
422template_not_approved · template_params_mismatch · service_window_expired · idempotency_key_reusedThe message cannot be sent as requested.
429rate_limitedPer-key or partner-wide limit exceeded. Retry after a short wait.
429tenant_rate_limitedThis customer is sending faster than its per-minute limit (default 300). Retry after details.retry_after_seconds.
501not_implementedReserved endpoint that is not available yet.
502meta_errorWhatsApp rejected the send. The response still carries a message_id with status failed.

Rate limits

Each key has its own per-minute limit, and your account has a ceiling set by Autobot360. Exceeding either returns 429 rate_limited. Every response carries X-Request-Id; quote it to support.

Not available yet

POST /v1/whatsapp/media returns 501 not_implemented. Media uploads and template creation through the API are still being built. Machine-readable specs: OpenAPI 3.1 and a Postman collection.