API reference 2 min read
Messaging and platform reference
Supported integration endpoints and their access requirements.
On this page
POST /api/platform/messages/template
API key and Idempotency-Key required. JSON: to and either templateId or templateName; optional parameters array defaults to []. The template must be approved on the selected sender’s WhatsApp Business Account. Use GET /templates to inspect parameterSchema and provide values in its order. Parameters can contain text or supported media/header values according to that schema. Returns a messageId on acceptance. x-whatsapp-sender selects a sender. Consent and billing checks apply.
POST /api/platform/messages/bulk/text
API key and Idempotency-Key required. JSON: {"messages":[{"to":"919876543210","body":"Hello"}]}. Processes items individually; returns successCount and failed entries with phone and error. HTTP success can include item failures. Reconcile before retrying a batch. Use individual sends with distinct keys when your integration needs per-message recovery.
GET /api/platform/templates
API key required. Lists the default sender’s Meta templates and workspace metadata, including parameterSchema. This listing currently uses the default workspace sender. POST /templates also uses an API key and submits templates to Meta for approval.
POST /api/platform/templates
API key required. JSON: name, body, optional language (default en), category (UTILITY, MARKETING or AUTHENTICATION; default UTILITY), and components for advanced Meta template payloads. Names are normalized. Requires active billing access. Submits the template to Meta; submission does not mean approval. Authentication templates require their appropriate BODY and OTP components. Returns the created/submitted template or an existing submission. Use GET /templates to check approval before sending.
POST /api/platform/opt-in
API key supported, or owner/admin dashboard authentication. JSON: phone, optional source (defaults to api for API-key calls). Returns 201 {"message":"Opt-in recorded"}. Only call after documented consent. This does not override an active opt-out.
GET /api/platform/limits
API key supported, or owner/admin dashboard authentication. Returns catalogVersion, rates, apiRequestsPerMinute, quotaTimeZone (UTC), dailyMessageLimit, monthlyMessageLimit, perMinuteLimit, contactLimit and campaignLimit. Entitlements come from verified purchases. PUT is not an API for changing a plan and returns 403.
GET /api/platform/usage
API key supported, or owner/admin dashboard authentication. Optional offset (0–100000) and state (reserved, submitted, unresolved, settled, released). Returns workspace usage, billing balances and rates, operations (up to 50), and nextOffset. Use this to reconcile pending sends before attempting a new action.
Dashboard management endpoints
API key administration (/api/platform/api-keys), contacts (/contacts), opt-out recording (/opt-out), webhook endpoints and delivery logs (/webhooks), and KYC operations require signed-in dashboard users with the appropriate workspace role. They are not general API-key integration endpoints. Manage these through Dashboard → Platform. An /api/platform path alone does not imply API-key access.
Need help with this guide? Contact support