# Fast2SMS API Docs Documentation > Documentation for Fast2SMS API Docs ## API Reference - [Authorization](https://docs.fast2sms.com/reference/authorization.md) - [DLT SMS API](https://docs.fast2sms.com/reference/dlt-sms.md) - [DLT SMS API](https://docs.fast2sms.com/reference/dlt-sms.md) - [DLT SMS (Single)](https://docs.fast2sms.com/reference/dlt-sms-single.md) - [DLT SMS (Multiple)](https://docs.fast2sms.com/reference/dlt-sms-multiple.md) - [DLT SMS (Manual) API](https://docs.fast2sms.com/reference/dlt-manual-api.md) - [DLT Manual](https://docs.fast2sms.com/reference/dlt-manual.md) - [DLT Manual (Single)](https://docs.fast2sms.com/reference/dlt-manual-single.md) - [DLT Manual (Multiple)](https://docs.fast2sms.com/reference/dlt-manual-multiple.md) - [Quick SMS](https://docs.fast2sms.com/reference/quick-sms.md): This is your first endpoint! Edit this page to start documenting your API. - [Quick SMS](https://docs.fast2sms.com/reference/quick-sms.md): This is your first endpoint! Edit this page to start documenting your API. - [Quick SMS](https://docs.fast2sms.com/reference/quick-sms-post.md): This is your first endpoint! Edit this page to start documenting your API. - [DLT Manager API](https://docs.fast2sms.com/reference/dlt-manager.md) - [View Sender/Template](https://docs.fast2sms.com/reference/view-sender-1.md) - [Add Entity](https://docs.fast2sms.com/reference/add-entity.md) - [Add Sender ID](https://docs.fast2sms.com/reference/add-sender-id.md) - [Add Sender ID (Excel)](https://docs.fast2sms.com/reference/add-sender-id-excel.md) - [Add Conten Templates](https://docs.fast2sms.com/reference/add-conten-template.md) - [Add Content Templates (Excel)](https://docs.fast2sms.com/reference/add-content-templates-excel.md) - [SMS Delivery Report API](https://docs.fast2sms.com/reference/delivery-fetch-api.md) - [Fetch Reports Manually](https://docs.fast2sms.com/reference/fetch-delivery-reports.md) - [SMS Logs](https://docs.fast2sms.com/reference/sms-analytics-api.md) - [SMS Logs Summary](https://docs.fast2sms.com/reference/sms-logs-summary.md) - [Send OTP](https://docs.fast2sms.com/reference/send-otp.md): Send an OTP to a mobile number using a predefined OTP template. You can customize the OTP length, expiry, and provide values for variables in your DLT template. - [Verify OTP](https://docs.fast2sms.com/reference/verify-otp.md): Verify the OTP received by the user. Each OTP has a limited number of verification attempts. - [Resend OTP](https://docs.fast2sms.com/reference/resend-otp.md): Resend the last OTP sent to the mobile number. This is allowed within a 10-minute window and capped at 5 attempts. - [Get WABA & Template Details](https://docs.fast2sms.com/reference/get-waba-template-details.md): Use this API to get WABA ID, Phone Number ID, Message ID, Meta Template ID. - [Get Phone Numbers](https://docs.fast2sms.com/reference/get-phone-numbers.md) - [Get Single Phone Number Details](https://docs.fast2sms.com/reference/get-single-phone-number-details.md) - [Get Display Name Status](https://docs.fast2sms.com/reference/get-display-name-status.md): This is your first endpoint! Edit this page to start documenting your API. - [Get Phone Numbers with Filtering](https://docs.fast2sms.com/reference/get-phone-numbers-with-filtering.md): This is your first endpoint! Edit this page to start documenting your API. - [Get WhatsApp Business Profile](https://docs.fast2sms.com/reference/get-whatsapp-business-profile.md): This is your first endpoint! Edit this page to start documenting your API. - [Get WABA Health Status](https://docs.fast2sms.com/reference/get-waba-health-status.md): This is your first endpoint! Edit this page to start documenting your API. - [Get Buisness Profile](https://docs.fast2sms.com/reference/get-buisness-profile.md) - [Update Business Profile](https://docs.fast2sms.com/reference/update-business-profile.md) - [Update Business Profile Photo](https://docs.fast2sms.com/reference/update-business-profile-photo.md): This is your first endpoint! Edit this page to start documenting your API. - [Send Session Message (Simple)](https://docs.fast2sms.com/reference/sendsessionmessage.md): Send a text or media message. Select the specific schema from the dropdown in the Request Body to see valid parameters. - [Send Session Message](https://docs.fast2sms.com/reference/sendmessage.md): Sends a session message within 24 hours of the user's reply. **Note:** Select the specific message type from the dropdown list in the request body. - [Send Template Message (Simple)](https://docs.fast2sms.com/reference/sendwhatsappmessage.md): This is a simple API for sending WhatsApp template messages using Fast2SMS format. If you need to send messages directly, consider using the META Format API (Advanced). - [Send Authentication Template](https://docs.fast2sms.com/reference/sendauthenticationtemplate.md): Send an authentication template (OTP). You usually need to pass the OTP code to both the `body` (for display) and the `button` (for copy-code or one-tap functionality). ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "", "type": "template", "template": { "name": "", "language": { "code": "" }, "components": [ { "type": "body", "parameters": [ { "type": "text", "text": "" } ] }, { "type": "button", "sub_type": "url", "index": "0", "parameters": [ { "type": "text", "text": "" } ] } ] } } ``` - [Send Text Template Message](https://docs.fast2sms.com/reference/sendtexttemplate.md): Send a basic text-based template message. This is the simplest form of a template message requiring no parameters or media. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "+919999595313", "type": "template", "template": { "name": "test_template", "language": { "code": "en" } } } ``` - [Send Media Template Message](https://docs.fast2sms.com/reference/sendmediatemplate.md): Send a template message that contains a media header (Image, Video, or Document) and optional body variables. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919999595313", "type": "template", "template": { "name": "test_tempalte", "language": { "code": "en" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "link": "[https://hello-assets-prod.s3.amazonaws.com/...jpg](https://hello-assets-prod.s3.amazonaws.com/...jpg)" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "Harsh" } ] } ] } } ``` - [Send Interactive Template Message](https://docs.fast2sms.com/reference/sendinteractivetemplate.md): Send a complex template message that includes dynamic headers (media), body parameters (text, currency, date/time), and button payloads (quick replies). ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "+919999595313", "type": "template", "template": { "name": "TEMPLATE_NAME", "language": { "code": "en_US" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "link": "[https://example.com/image.jpg](https://example.com/image.jpg)" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "TEXT_STRING" }, { "type": "currency", "currency": { "fallback_value": "$10.99", "code": "USD", "amount_1000": 10990 } }, { "type": "date_time", "date_time": { "fallback_value": "February 25, 2024" } } ] }, { "type": "button", "sub_type": "quick_reply", "index": "0", "parameters": [ { "type": "payload", "payload": "PAYLOAD_DATA" } ] } ] } } ``` - [Send Location Template Message](https://docs.fast2sms.com/reference/sendlocationtemplate.md): Send a template message that includes a dynamic Location header. You must provide the latitude, longitude, name, and address. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "PHONE_NUMBER", "type": "template", "template": { "name": "location_test", "language": { "code": "en" }, "components": [ { "type": "header", "parameters": [ { "type": "location", "location": { "longitude": -122.425332, "latitude": 37.758056, "name": "Facebook HQ", "address": "1 Hacker Way, Menlo Park, CA 94025" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "Harsh" } ] } ] } } ``` - [Send Template (with variable)](https://docs.fast2sms.com/reference/sendtemplatewithvariable.md): Send a template message that requires text variables (parameters) to be filled in the message body (e.g., "Hi {{1}}, your order is {{2}}"). ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "number", "type": "template", "template": { "name": "templatename", "language": { "code": "code" }, "components": [ { "type": "body", "parameters": [ { "type": "text", "text": "textvalue" } ] } ] } } ``` - [Send Template (CTA button)](https://docs.fast2sms.com/reference/sendtemplatectabutton.md): Send a template message containing a Call-To-Action (CTA) URL button with dynamic parameters. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919999595313", "type": "template", "template": { "name": "templatename", "language": { "code": "code" }, "components": [{ "type": "button", "sub_type": "url", "index": "0", "parameters": [{ "type": "payload", "payload": "value" }] }] } } ``` - [Send Catalog Template Message](https://docs.fast2sms.com/reference/sendcatalogtemplate.md): Send a template message that includes a button to open a specific Product Catalog. You can define the thumbnail image using a product retailer ID. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "+16505551234", "type": "template", "template": { "name": "intro_catalog_offer", "language": { "code": "en_US" }, "components": [ { "type": "body", "parameters": [ { "type": "text", "text": "100" }, { "type": "text", "text": "400" }, { "type": "text", "text": "3" } ] }, { "type": "button", "sub_type": "CATALOG", "index": 0, "parameters": [ { "type": "action", "action": { "thumbnail_product_retailer_id": "2lc20305pt" } } ] } ] } } ``` - [Send Multi-Product Template Message](https://docs.fast2sms.com/reference/sendmultiproducttemplate.md): Send a template message that includes a Multi-Product Message (MPM) button. This allows you to define specific sections and products (by retailer ID) that populate the menu when the user clicks the button. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "16505551234", "type": "template", "template": { "name": "abandoned_cart", "language": { "code": "en_US" }, "components": [ { "type": "header", "parameters": [ { "type": "text", "text": "Pablo" } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "10OFF" } ] }, { "type": "button", "sub_type": "mpm", "index": 0, "parameters": [ { "type": "action", "action": { "thumbnail_product_retailer_id": "2lc20305pt", "sections": [ { "title": "Popular Bundles", "product_items": [ { "product_retailer_id": "2lc20305pt" }, { "product_retailer_id": "nseiw1x3ch" } ] }, { "title": "Premium Packages", "product_items": [ { "product_retailer_id": "n6k6x0y7oe" } ] } ] } } ] } ] } } ``` - [Send Carousel Template Message](https://docs.fast2sms.com/reference/sendcarouseltemplate.md): Send a Carousel Template message. This involves defining variables for the main message body, as well as specific media (headers) and text variables for each card in the carousel. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919833056101", "type": "template", "template": { "name": "test_template", "language": { "code": "en" }, "components": [ { "type": "BODY", "parameters": [ { "type": "TEXT", "text": "15OFF" }, { "type": "TEXT", "text": "15" } ] }, { "type": "CAROUSEL", "cards": [ { "card_index": 0, "components": [ { "type": "HEADER", "parameters": [ { "type": "IMAGE", "image": { "link": "[https://example.com/wa/final.jpg](https://example.com/wa/final.jpg)" } } ] }, { "type": "BODY", "parameters": [ { "type": "text", "text": "15OFF" }, { "type": "text", "text": "15" } ] } ] } ] } ] } } ``` - [Send Coupon Code Template Message](https://docs.fast2sms.com/reference/sendcouponcodetemplate.md): Send a template message that includes a 'Copy Code' button. You must pass the specific coupon code value in the button component parameters. ### Example Request Body ```json { "messaging_product": "whatsapp", "to": "+919999XXXXXX", "type": "template", "template": { "name": "coupon_code_fall2023_25off", "language": { "code": "en" }, "components": [ { "type": "body", "parameters": [ { "type": "text", "text": "25OFF" }, { "type": "text", "text": "25%" } ] }, { "type": "button", "sub_type": "COPY_CODE", "index": 1, "parameters": [ { "type": "coupon_code", "coupon_code": "25OFF" } ] } ] } } ``` - [Send Limited Time Offer Template Message](https://docs.fast2sms.com/reference/sendlimitedtimeoffertemplate.md): Send a template message containing a Limited Time Offer (LTO). You must provide the `expiration_time_ms` (Unix timestamp in milliseconds) for the countdown timer. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "PHONE_NUMBER", "type": "template", "template": { "name": "TEMPLATE_NAME", "language": { "code": "en" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "id": "1166301034380136" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "Harsh" }, { "type": "text", "text": "HOTS25" } ] }, { "type": "limited_time_offer", "parameters": [ { "type": "limited_time_offer", "limited_time_offer": { "expiration_time_ms": 1713961800000 } } ] }, { "type": "button", "sub_type": "copy_code", "index": 0, "parameters": [ { "type": "coupon_code", "coupon_code": "HOTS25" } ] }, { "type": "button", "sub_type": "url", "index": 1, "parameters": [ { "type": "text", "text": "n3mtql" } ] } ] } } ``` - [Send Flows Template Message](https://docs.fast2sms.com/reference/sendflowstemplate.md): Send a template message that opens a WhatsApp Flow. You can pass an optional `flow_token` and initial data payload (`flow_action_data`) to the flow. ### Example Request Body ```json { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "PHONE_NUMBER", "type": "template", "template": { "name": "TEMPLATE_NAME", "language": { "code": "LANGUAGE_AND_LOCALE_CODE" }, "components": [ { "type": "button", "sub_type": "flow", "index": "0", "parameters": [ { "type": "action", "action": { "flow_token": "FLOW_TOKEN", "flow_action_data": { "key": "value" } } } ] } ] } } ``` - [Create Copy Code Template](https://docs.fast2sms.com/reference/createcopycodetemplate.md): Creates a basic authentication template with a 'Copy Code' button. Requires Body, Footer, and Buttons components. - [Create One-Tap Template](https://docs.fast2sms.com/reference/createonetaptemplate.md): Creates a One-Tap authentication template. The `supported_apps` field is critical here. - [Create Zero-Tap Template](https://docs.fast2sms.com/reference/createzerotaptemplate.md): Creates a frictionless authentication template. The `zero_tap_terms_accepted` field is mandatory. - [Create Text Template](https://docs.fast2sms.com/reference/createtexttemplate.md): Create a text template. The language defaults to English ('en'). - [Create Media Template](https://docs.fast2sms.com/reference/createmediatemplate.md): Create a template with a media header (Image, Video, or Document). You must provide a valid `header_handle` for the media sample. ### Example Request Body ```json { "name": "TEMPLATE NAME", "language": "en", "category": "UTILITY", "components": [ { "type": "HEADER", "format": "DOCUMENT", "example": { "header_handle": [ "4::YXBwbGljYXRpb24vcGRm:ARbRac-7KRV919yIfV5nBwdQ7Gg6EQUyWW_BF8TMpBD_vQES-jRDnh_ljDxHQYqm5blYGoXD1jWowPkPTlQ2Pr2XZwOHoFTW2VM5l2EDBkGQBA:e:1705221283:256725303808337:100052252050649:ARa0nL2E0drGk4fXSCs" ] } }, { "type": "BODY", "text": "Hello {{1}}. Your account is now LIVE, enjoy our services!", "example": { "body_text": [ [ "Name" ] ] } } ] } ``` - [Create Location Template](https://docs.fast2sms.com/reference/createlocationtemplate.md): Create a template that includes a Location header. Note: You do not need to provide a location example in the header during creation, only the format. ### Example Request Body ```json { "name": "location_test", "language": "en", "category": "MARKETING", "components": [ { "type": "HEADER", "format": "LOCATION" }, { "type": "BODY", "text": "Hello {{1}}. Your account is now LIVE, enjoy our services!", "example": { "body_text": [ [ "Name" ] ] } } ] } ``` - [Create Catalog Template](https://docs.fast2sms.com/reference/createcatalogtemplate.md): Create a template that includes a button to open your product catalog. This example includes body variables and a footer. ### Example Request Body ```json { "name": "intro_catalog_offer", "language": "en", "category": "MARKETING", "components": [ { "type": "BODY", "text": "Now shop for your favourite products right here on WhatsApp! Get Rs {{1}} off on all orders above {{2}}Rs! Valid for your first {{3}} orders placed on WhatsApp!", "example": { "body_text": [ [ "100", "400", "3" ] ] } }, { "type": "FOOTER", "text": "Best grocery deals on WhatsApp!" }, { "type": "BUTTONS", "buttons": [ { "type": "CATALOG", "text": "View catalog" } ] } ] } ``` - [Create Multi-Product Template](https://docs.fast2sms.com/reference/createmultiproducttemplate.md): Create a template that uses a Multi-Product Message (MPM) button. This is often used for abandoned cart recovery or showcasing collections. ### Example Request Body ```json { "name": "abandoned_cart", "language": "en_US", "category": "MARKETING", "components": [ { "type": "HEADER", "format": "TEXT", "text": "Forget something, {{1}}?", "example": { "header_text": [ "Pablo" ] } }, { "type": "BODY", "text": "Looks like you left these items in your cart, still interested? Use code {{1}} to get 10% off!", "example": { "body_text": [ [ "10OFF" ] ] } }, { "type": "BUTTONS", "buttons": [ { "type": "MPM", "text": "View items" } ] } ] } ``` - [Create Carousel Template](https://docs.fast2sms.com/reference/createcarouseltemplate.md): Create a rich media carousel template. This allows you to send a horizontal scrollable view of cards, each with its own header, body, and buttons. ### Example Request Body ```json { "name": "summer_carousel_sales_2024_v1", "language": "en", "category": "MARKETING", "components": [ { "type": "BODY", "text": "Summer is here, and we have the freshest produce around! Use code {{1}} to get {{2}} off your next order.", "example": { "body_text": [ [ "15OFF", "15%" ] ] } }, { "type": "CAROUSEL", "cards": [ { "components": [ { "type": "HEADER", "format": "IMAGE", "example": { "header_handle": [ "4::aW1hZ2UvanBlZw==:ARb52CTUac8FTuSZdkoCXGdeoxDZPHtGa3LSZmQjIxGnvDhg3hJQe37IRYld6flatNuZiaa89a6M_23HGH0ylis7w1O6pILkUxR-TrLlKp-mYA:e:1708173546:256725303808337:100052252050649:ARbcwlC3kHgZ7vaMLbQ" ] } }, { "type": "BODY", "text": "Rare lemons for unique lemon Tea. Use code {{1}} to get {{2}} off all produce.", "example": { "body_text": [ [ "LEOOFF15", "15%" ] ] } }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "Send more like this" }, { "type": "QUICK_REPLY", "text": "need price detail" } ] } ] }, { "components": [ { "type": "HEADER", "format": "IMAGE", "example": { "header_handle": [ "4::aW1hZ2UvcG5n:ARZrkzRYQS-SePQKO6o4eUFKsYqaEsuBXuuqmE8oJIFOwnrX8-cpujg_887eN0qZPntQnacOHTAZMQuC7WV4nuaJ2S5_9btVL7IJJ34k4f35PA:e:1708174367:256725303808337:100052252050649:ARaGtQPC_FWyQgaXFPk" ] } }, { "type": "BODY", "text": "Card 2 Test body {{1}} and {{2}}", "example": { "body_text": [ [ "MELONOFF15", "15%" ] ] } }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "Send more like this" }, { "type": "QUICK_REPLY", "text": "need price detail" } ] } ] }, { "components": [ { "type": "HEADER", "format": "IMAGE", "example": { "header_handle": [ "4::aW1hZ2UvcG5n:ARY9GxwAjfNLo7lg57j3gdQFpPnvckfn4638X_6_orQcqb00wTZHyHpjzQsf1cqhRaVAqRlx9Cp-T_FvOKaOlQ5bZxBYwd-x9Z7JS9I_olarAQ:e:1708174393:256725303808337:100052252050649:ARYn0HTLnFru6DpFe9c" ] } }, { "type": "BODY", "text": "Card 3 Test body {{1}} and {{2}}", "example": { "body_text": [ [ "APPLEOFF15", "15%" ] ] } }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "Send more like this" }, { "type": "QUICK_REPLY", "text": "need price detail" } ] } ] } ] } ] } ``` - [Create Limited Time Offer Template](https://docs.fast2sms.com/reference/createlimitedtimeoffertemplate.md): Create a marketing template with a Limited Time Offer (LTO) component. This adds an expiration countdown visual to the message. ### Example Request Body ```json { "name": "limited_time_offer", "language": "en", "category": "marketing", "components": [ { "type": "header", "format": "image", "example": { "header_handle": [ "4::aW1" ] } }, { "type": "limited_time_offer", "limited_time_offer": { "text": "Expiring offer!", "has_expiration": true } }, { "type": "body", "text": "Good news, {{1}}! Use code {{2}} to get 25% off all Caribbean Destination packages!", "example": { "body_text": [ [ "Harsh", "HOTS25" ] ] } }, { "type": "buttons", "buttons": [ { "type": "copy_code", "example": "HOTS25" }, { "type": "url", "text": "Book now!", "url": "[https://awesomedestinations.com/offers?code=](https://awesomedestinations.com/offers?code=){{1}}", "example": [ "[https://awesomedestinations.com/offers?ref=n3mtql](https://awesomedestinations.com/offers?ref=n3mtql)" ] } ] } ] } ``` - [Create Coupon Code Template](https://docs.fast2sms.com/reference/createcouponcodetemplate.md): Create a marketing template with a 'Copy Code' button. This allows users to tap a button to copy a specific coupon code to their clipboard. ### Example Request Body ```json { "name": "coupon_code_fall2023_25off", "language": "en", "category": "MARKETING", "components": [ { "type": "HEADER", "format": "TEXT", "text": "Our Fall Sale is on!" }, { "type": "BODY", "text": "Shop now through November and use code {{1}} to get {{2}} off of all merchandise!", "example": { "body_text": [ [ "25OFF", "25%" ] ] } }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "Unsubscribe" }, { "type": "COPY_CODE", "example": "250FF" } ] } ] } ``` - [Create Call To Action (CTA) Template](https://docs.fast2sms.com/reference/createctatemplate.md): Create a template with URL buttons. You can mix Dynamic URLs (containing variables like `{{1}}`) and Static URLs. ### Example Request Body ```json { "name": "TEMPLATE_NAME", "language": "en", "category": "MARKETING", "components": [ { "type": "BODY", "text": "Hi {{1}}, This is test template", "example": { "body_text": [ [ "John" ] ] } }, { "type": "BUTTONS", "buttons": [ { "type": "URL", "text": "Dynamic Link", "url": "[https://www.example.com/](https://www.example.com/){{1}}", "example": "[https://www.example.com/test](https://www.example.com/test)" }, { "type": "URL", "text": "Static Link", "url": "[https://www.example.com](https://www.example.com)" } ] } ] } ``` - [Create Flows Template](https://docs.fast2sms.com/reference/createflowstemplate.md): Create a template that opens a WhatsApp Flow. This allows for rich, interactive experiences within the chat. ### Example Request Body ```json { "name": "example_template_name", "language": "en_US", "category": "MARKETING", "components": [ { "type": "body", "text": "This is a flows as template demo" }, { "type": "BUTTONS", "buttons": [ { "type": "FLOW", "text": "Open flow!", "flow_id": "", "navigate_screen": "Flows Json screen name", "flow_action": "navigate" } ] } ] } ``` - [Edit Template](https://docs.fast2sms.com/reference/edittemplate.md): Update an existing template. You can usually only edit templates that are in a `REJECTED` or `PAUSED` state, or to correct minor errors. ### Example Request Body ```json { "name": "2023_april_promo", "components": [ { "type": "HEADER", "format": "TEXT", "text": "Fall Sale" }, { "type": "BODY", "text": "Hi {{1}}, our Fall Sale is on! Use promo code {{2}}...", "example": { "body_text": [["Mark", "FALL25"]] } }, { "type": "FOOTER", "text": "Not interested in any of our sales? Tap Stop Promotions" }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "Stop promotions" } ] } ], "language": "en_US", "category": "MARKETING" } ``` - [Get All Templates](https://docs.fast2sms.com/reference/get-all-templates.md): This is your first endpoint! Edit this page to start documenting your API. - [Get Template By ID](https://docs.fast2sms.com/reference/get-template-by-id.md): This is your first endpoint! Edit this page to start documenting your API. - [Get Template By Name](https://docs.fast2sms.com/reference/get-template-by-name.md): This is your first endpoint! Edit this page to start documenting your API. - [Delete Template by ID](https://docs.fast2sms.com/reference/deletetemplate.md): Delete a WhatsApp message template. You can filter by `hsm_id`, `name`, or provide both as shown in your URL. - [Delete Template by Name](https://docs.fast2sms.com/reference/deletetemplatebyname.md): Delete a WhatsApp message template using its name. - [Get Media URL From Media ID (received in webhook)](https://docs.fast2sms.com/reference/get-media-url-from-media-id.md): This is your first endpoint! Edit this page to start documenting your API. - [Create Media Handle](https://docs.fast2sms.com/reference/createmediahandle.md): Upload a file to generate a Media Handle (`h`). This handle is often used in specific flows or resumable upload contexts. ### Example Response ```json { "h": "2:c2FtcGx..." } ``` - [Upload Media](https://docs.fast2sms.com/reference/uploadmedia.md): Upload media (images, documents, etc.) to the WhatsApp Cloud API. The response will provide a `media_id` that you can use in messages or templates. - [List of QR Codes](https://docs.fast2sms.com/reference/list-of-qr-codes.md): This is your first endpoint! Edit this page to start documenting your API. - [Get QR Code](https://docs.fast2sms.com/reference/get-qr-code.md): This is your first endpoint! Edit this page to start documenting your API. - [Create QR Code](https://docs.fast2sms.com/reference/createqrcode.md): Create a QR code that, when scanned, opens a chat with your business and pre-fills a specific message in the user's text input. ### Example Response ```json { "code": "4O4YGZEG3RIVE1", "prefilled_message": "Cyber Monday 1", "deep_link_url": "[https://wa.me/message/4O4YGZEG3RIVE1](https://wa.me/message/4O4YGZEG3RIVE1)", "qr_image_url": "[https://scontent-iad3-2.xx.fbcdn.net/](https://scontent-iad3-2.xx.fbcdn.net/)..." } ``` - [Update QR Code](https://docs.fast2sms.com/reference/updateqrcode.md): Update the pre-filled message associated with an existing QR code. - [Delete QR Code](https://docs.fast2sms.com/reference/deleteqrcode.md): Delete a specific QR code using its ID. - [Get Blocked Users](https://docs.fast2sms.com/reference/get-blocked-users.md) - [Block User(s)](https://docs.fast2sms.com/reference/block-users.md) - [Unblock User(s)](https://docs.fast2sms.com/reference/unblockusers.md): Unblock one or more WhatsApp users to allow them to message your business again. - [Fetch Reports Manually](https://docs.fast2sms.com/reference/fetch-reports-manually.md): Pass correct REQUEST_ID for which you need to fetch delivery reports. - [WhatsApp Logs](https://docs.fast2sms.com/reference/whatsapp-logs.md) - [WhatsApp Logs Summary](https://docs.fast2sms.com/reference/whatsapp-logs-summary.md) - [SMS Webhook Overview](https://docs.fast2sms.com/reference/sms-webhook.md) - [List SMS Webhooks](https://docs.fast2sms.com/reference/list-sms-webhooks.md): Retrieve all configured webhooks for the SMS service. - [Create SMS Webhook](https://docs.fast2sms.com/reference/create-sms-webhook.md): Create a new webhook configuration for the SMS service. - [Update SMS Webhook](https://docs.fast2sms.com/reference/update-sms-webhook.md): Update an existing webhook configuration for the SMS service. - [Delete SMS Webhook](https://docs.fast2sms.com/reference/delete-sms-webhook.md): Soft-delete a configured webhook for the SMS service. - [OTP Webhook Overview](https://docs.fast2sms.com/reference/otp-webhook.md) - [List OTP Webhooks](https://docs.fast2sms.com/reference/list-otp-webhooks.md): Retrieve all configured webhooks for the OTP service. - [Create OTP Webhook](https://docs.fast2sms.com/reference/create-otp-webhook.md): Create a new webhook configuration for the OTP service. - [Update OTP Webhook](https://docs.fast2sms.com/reference/update-otp-webhook.md): Update an existing webhook configuration for the OTP service. - [Delete OTP Webhook](https://docs.fast2sms.com/reference/delete-otp-webhook.md): Soft-delete a configured webhook for the OTP service. - [WhatsApp Webhook Overview](https://docs.fast2sms.com/reference/whatsapp-webhook.md) - [List WhatsApp Webhooks](https://docs.fast2sms.com/reference/list-whatsapp-webhooks.md): Retrieve all configured webhooks for the WhatsApp service. - [Create WhatsApp Webhook](https://docs.fast2sms.com/reference/create-whatsapp-webhook.md): Create a new webhook configuration for the WhatsApp service. - [Update WhatsApp Webhook](https://docs.fast2sms.com/reference/update-whatsapp-webhook.md): Update an existing webhook configuration for the WhatsApp service. - [Delete WhatsApp Webhook](https://docs.fast2sms.com/reference/delete-whatsapp-webhook.md): Soft-delete a configured webhook for the WhatsApp service. - [RCS Webhook Overview](https://docs.fast2sms.com/reference/rcs-webhook.md) - [List RCS Webhooks](https://docs.fast2sms.com/reference/list-rcs-webhooks.md): Retrieve all configured webhooks for the RCS service. - [Create RCS Webhook](https://docs.fast2sms.com/reference/create-rcs-webhook.md): Create a new webhook configuration for the RCS service. - [Update RCS Webhook](https://docs.fast2sms.com/reference/update-rcs-webhook.md): Update an existing webhook configuration for the RCS service. - [Delete RCS Webhook](https://docs.fast2sms.com/reference/delete-rcs-webhook.md): Soft-delete a configured webhook for the RCS service. - [Wallet Balance](https://docs.fast2sms.com/reference/wallet-balance.md) - [Error Code List](https://docs.fast2sms.com/reference/error-code-list.md)