{"id":17045,"date":"2026-07-11T17:07:49","date_gmt":"2026-07-11T11:37:49","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/"},"modified":"2026-07-11T17:07:49","modified_gmt":"2026-07-11T11:37:49","slug":"whatsapp-message-api","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/","title":{"rendered":"WhatsApp Message API: Send Messages from Your App with REST and Webhooks"},"content":{"rendered":"<p>You want your website or app to send WhatsApp messages: order updates, OTPs, reminders. This guide shows the Fast2SMS WhatsApp message API with real requests you can copy. Free API access, no monthly fee, pay per message.<\/p>\n<p>Full reference lives at <a href=\"https:\/\/docs.fast2sms.com\" target=\"_blank\" rel=\"noopener\">docs.fast2sms.com<\/a>. This is the quick version to get you sending in minutes.<\/p>\n<h2>Before you start<\/h2>\n<ol>\n<li>Create a free account at <a href=\"https:\/\/www.fast2sms.com\" target=\"_blank\" rel=\"noopener\">fast2sms.com<\/a> and copy your API key from the Dev API section.<\/li>\n<li>Connect a WhatsApp Business number (new, or your existing app number). Free, no setup fee. Steps in the <a href=\"https:\/\/www.fast2sms.com\/help\/get-free-whatsapp-cloud-api-access-no-monthly-or-setup-fee\/\">Cloud API guide<\/a>.<\/li>\n<li>Get a template approved (marketing, utility, or authentication). Every approved template gets its own ready-made API.<\/li>\n<\/ol>\n<figure style=\"margin:36px 0;text-align:center;\">\n  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-27-at-10.42.38-PM.png\" alt=\"API authorization key shown in the Fast2SMS panel\" width=\"663\" height=\"228\" style=\"max-width:100%;height:auto;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.06);\" \/><figcaption style=\"font-size:14px;color:#6b7280;margin-top:12px;font-style:italic;\">Your API key goes in the Authorization header of every request.<\/figcaption><\/figure>\n<h2>Send a template message<\/h2>\n<p>One GET request sends an approved template to any WhatsApp number:<\/p>\n<pre style=\"background:#1f2937;color:#e5e7eb;padding:16px;border-radius:8px;overflow-x:auto;font-size:14px;\"><code>curl \"https:\/\/www.fast2sms.com\/dev\/whatsapp?message_id=9&amp;phone_number_id=579519398574288&amp;numbers=9999999999&amp;variables_values=Rahul|1234\" \\\n  -H \"Authorization: YOUR_API_KEY\"<\/code><\/pre>\n<p>The parameters:<\/p>\n<ul>\n<li><code>message_id<\/code> \u2014 the ID of your approved template (shown in your panel).<\/li>\n<li><code>phone_number_id<\/code> \u2014 your WhatsApp Business number&#8217;s ID.<\/li>\n<li><code>numbers<\/code> \u2014 recipient&#8217;s 10-digit Indian mobile number.<\/li>\n<li><code>variables_values<\/code> \u2014 values for template variables, separated by a pipe, like <code>Rahul|1234<\/code>.<\/li>\n<li><code>media_url<\/code> \u2014 optional, for templates with an image or PDF header.<\/li>\n<li><code>document_filename<\/code> \u2014 optional, the file name the customer sees on a PDF.<\/li>\n<\/ul>\n<p>Success response:<\/p>\n<pre style=\"background:#1f2937;color:#e5e7eb;padding:16px;border-radius:8px;overflow-x:auto;font-size:14px;\"><code>{\n  \"status\": true,\n  \"message\": \"Message sent successfully\",\n  \"request_id\": \"6a3b2c1d\"\n}<\/code><\/pre>\n<p>Keep the <code>request_id<\/code>. It traces the message in delivery reports.<\/p>\n<h2>Every template comes with a ready API<\/h2>\n<p>You do not have to build requests by hand. The panel generates the exact API call for each approved template, and you can download all of them as a sheet.<\/p>\n<figure style=\"margin:36px 0;text-align:center;\">\n  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/03\/Screenshot-2026-03-27-at-10.45.22-PM.png\" alt=\"Sheet of ready-made APIs for every approved WhatsApp template in Fast2SMS\" width=\"954\" height=\"292\" style=\"max-width:100%;height:auto;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.06);\" \/><figcaption style=\"font-size:14px;color:#6b7280;margin-top:12px;font-style:italic;\">Ready APIs for every approved template. Copy, add values, send.<\/figcaption><\/figure>\n<h2>More than templates<\/h2>\n<ul>\n<li><strong>Session messages.<\/strong> Reply free-form within the 24-hour customer service window.<\/li>\n<li><strong>Authentication templates.<\/strong> Purpose-built OTP messages. Pair with <a href=\"https:\/\/www.fast2sms.com\/help\/whatsapp-otp-wordpress\/\">Smart OTP<\/a> for SMS fallback.<\/li>\n<li><strong>Media, carousel and flows templates.<\/strong> Rich formats for offers and forms.<\/li>\n<li><strong>Template management by API.<\/strong> Create, edit, delete and list templates programmatically.<\/li>\n<\/ul>\n<h2>Webhooks: know what happened<\/h2>\n<p>Create a WhatsApp webhook and Fast2SMS calls your URL with delivery events, so your database always knows if a message was sent, delivered or failed. Webhook endpoints exist for SMS and OTP events too, plus a logs API for pulling history. All documented at <a href=\"https:\/\/docs.fast2sms.com\" target=\"_blank\" rel=\"noopener\">docs.fast2sms.com<\/a>.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>What does the WhatsApp API cost?<\/h3>\n<p>Access is free with no monthly fee. Messages are billed per delivered message: INR 0.25 for utility and authentication, INR 0.95 for marketing. Failed messages are refunded automatically.<\/p>\n<h3>Which numbers can receive messages?<\/h3>\n<p>Any WhatsApp user. Sending is set up for Indian businesses, and recipient numbers are Indian 10-digit numbers.<\/p>\n<h3>Do I need Meta developer approval myself?<\/h3>\n<p>No. Connect your number through the Fast2SMS panel with Facebook login, get templates approved there, and use the simple REST API above. Fast2SMS handles the Meta side.<\/p>\n<h3>Can I send bulk campaigns through the API?<\/h3>\n<p>Yes, loop your list with one request per number, or use the panel broadcast. See <a href=\"https:\/\/www.fast2sms.com\/help\/send-bulk-whatsapp-messages\/\">how to send bulk WhatsApp messages<\/a>.<\/p>\n<h3>Is there an SMS API too?<\/h3>\n<p>Yes, same account and same key. See the <a href=\"https:\/\/www.fast2sms.com\/help\/bulk-sms-api-india\/\">bulk SMS API guide<\/a>.<\/p>\n<h3>Where are the full docs?<\/h3>\n<p><a href=\"https:\/\/docs.fast2sms.com\" target=\"_blank\" rel=\"noopener\">docs.fast2sms.com<\/a> covers every endpoint: messages, templates, webhooks, logs and wallet balance.<\/p>\n<h2>Get your API key<\/h2>\n<p>Create your free account, connect your WhatsApp number, and send your first API message today.<\/p>\n<p style=\"text-align:center;margin:28px 0;\">\n  <a href=\"https:\/\/www.fast2sms.com\" target=\"_blank\" rel=\"noopener\" style=\"display:inline-block;background:#e63329;color:#ffffff;font-size:20px;font-weight:700;padding:16px 52px;border-radius:40px;text-decoration:none;box-shadow:0 3px 8px rgba(0,0,0,0.22);\">Signup Now<\/a>\n<\/p>\n<p>Questions? Write to <a href=\"mailto:support@fast2sms.com\">support@fast2sms.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Developer guide to the Fast2SMS WhatsApp message API: send template messages with one request, attach media, and track delivery with webhooks.<\/p>\n","protected":false},"author":11,"featured_media":16739,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"WhatsApp message API","_yoast_wpseo_title":"WhatsApp Message API with REST & Webhooks | Fast2SMS","_yoast_wpseo_metadesc":"Send WhatsApp messages from your app with a simple REST API: template messages, media, webhooks and logs. Free access, pay per message.","footnotes":""},"categories":[4,24],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WhatsApp Message API with REST &amp; Webhooks | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Send WhatsApp messages from your app with a simple REST API: template messages, media, webhooks and logs. Free access, pay per message.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WhatsApp Message API with REST &amp; Webhooks | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Send WhatsApp messages from your app with a simple REST API: template messages, media, webhooks and logs. Free access, pay per message.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Fast2SMS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Fast2SMS\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-11T11:37:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/05\/WhatsApp-API.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"620\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Fast2SMS\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fast2sms\" \/>\n<meta name=\"twitter:site\" content=\"@fast2sms\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fast2SMS\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/\"},\"author\":{\"name\":\"Fast2SMS\",\"@id\":\"https:\/\/www.fast2sms.com\/help\/#\/schema\/person\/9549639ed9c1998dbed435d88b9e70c9\"},\"headline\":\"WhatsApp Message API: Send Messages from Your App with REST and Webhooks\",\"datePublished\":\"2026-07-11T11:37:49+00:00\",\"dateModified\":\"2026-07-11T11:37:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/\"},\"wordCount\":548,\"publisher\":{\"@id\":\"https:\/\/www.fast2sms.com\/help\/#organization\"},\"articleSection\":[\"API\",\"WhatsApp\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/\",\"url\":\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/\",\"name\":\"WhatsApp Message API with REST & Webhooks | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\/\/www.fast2sms.com\/help\/#website\"},\"datePublished\":\"2026-07-11T11:37:49+00:00\",\"dateModified\":\"2026-07-11T11:37:49+00:00\",\"description\":\"Send WhatsApp messages from your app with a simple REST API: template messages, media, webhooks and logs. Free access, pay per message.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fast2sms.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WhatsApp Message API: Send Messages from Your App with REST and Webhooks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fast2sms.com\/help\/#website\",\"url\":\"https:\/\/www.fast2sms.com\/help\/\",\"name\":\"Fast2SMS\",\"description\":\"Help\",\"publisher\":{\"@id\":\"https:\/\/www.fast2sms.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fast2sms.com\/help\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fast2sms.com\/help\/#organization\",\"name\":\"Fast2SMS\",\"url\":\"https:\/\/www.fast2sms.com\/help\/\",\"sameAs\":[\"https:\/\/www.facebook.com\/Fast2SMS\/\",\"https:\/\/twitter.com\/fast2sms\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fast2sms.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2021\/01\/Fast2SMS-logo.jpg\",\"contentUrl\":\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2021\/01\/Fast2SMS-logo.jpg\",\"width\":210,\"height\":210,\"caption\":\"Fast2SMS\"},\"image\":{\"@id\":\"https:\/\/www.fast2sms.com\/help\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fast2sms.com\/help\/#\/schema\/person\/9549639ed9c1998dbed435d88b9e70c9\",\"name\":\"Fast2SMS\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WhatsApp Message API with REST & Webhooks | Fast2SMS","description":"Send WhatsApp messages from your app with a simple REST API: template messages, media, webhooks and logs. Free access, pay per message.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/","og_locale":"en_US","og_type":"article","og_title":"WhatsApp Message API with REST & Webhooks | Fast2SMS","og_description":"Send WhatsApp messages from your app with a simple REST API: template messages, media, webhooks and logs. Free access, pay per message.","og_url":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-07-11T11:37:49+00:00","og_image":[{"width":1366,"height":620,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/05\/WhatsApp-API.png","type":"image\/png"}],"author":"Fast2SMS","twitter_card":"summary_large_image","twitter_creator":"@fast2sms","twitter_site":"@fast2sms","twitter_misc":{"Written by":"Fast2SMS","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/"},"author":{"name":"Fast2SMS","@id":"https:\/\/www.fast2sms.com\/help\/#\/schema\/person\/9549639ed9c1998dbed435d88b9e70c9"},"headline":"WhatsApp Message API: Send Messages from Your App with REST and Webhooks","datePublished":"2026-07-11T11:37:49+00:00","dateModified":"2026-07-11T11:37:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/"},"wordCount":548,"publisher":{"@id":"https:\/\/www.fast2sms.com\/help\/#organization"},"articleSection":["API","WhatsApp"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/","url":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/","name":"WhatsApp Message API with REST & Webhooks | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"datePublished":"2026-07-11T11:37:49+00:00","dateModified":"2026-07-11T11:37:49+00:00","description":"Send WhatsApp messages from your app with a simple REST API: template messages, media, webhooks and logs. Free access, pay per message.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/whatsapp-message-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fast2sms.com\/help\/"},{"@type":"ListItem","position":2,"name":"WhatsApp Message API: Send Messages from Your App with REST and Webhooks"}]},{"@type":"WebSite","@id":"https:\/\/www.fast2sms.com\/help\/#website","url":"https:\/\/www.fast2sms.com\/help\/","name":"Fast2SMS","description":"Help","publisher":{"@id":"https:\/\/www.fast2sms.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fast2sms.com\/help\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fast2sms.com\/help\/#organization","name":"Fast2SMS","url":"https:\/\/www.fast2sms.com\/help\/","sameAs":["https:\/\/www.facebook.com\/Fast2SMS\/","https:\/\/twitter.com\/fast2sms"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fast2sms.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2021\/01\/Fast2SMS-logo.jpg","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2021\/01\/Fast2SMS-logo.jpg","width":210,"height":210,"caption":"Fast2SMS"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fast2sms.com\/help\/#\/schema\/person\/9549639ed9c1998dbed435d88b9e70c9","name":"Fast2SMS"}]}},"_links":{"self":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/17045"}],"collection":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/comments?post=17045"}],"version-history":[{"count":0,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/17045\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/16739"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=17045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=17045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=17045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}