RASL
RASL | DashboardContact
RASL | DashboardContact
Instagram
  1. Templates
RASL
  • Introduction
  • Messages
    • Overview
    • Message Bot Management
      • List Message Bots
      • Get Message Bots Details
    • Send Simple Message
      POST
    • Send Media Message
      POST
  • Templates
    • Overview
    • Template Management
      • Template Bot
        • List Template Bots
        • Get Template Bots Details
      • List Templates
      • Get Template Details
    • Send Authentication Template
      POST
    • Send Template Message
      POST
  • Contacts
    • Overview
    • Create a New Contact
      POST
    • List Contacts
      GET
    • Get Contact Details
      GET
    • Update Contact Information
      PUT
    • Delete Contact
      DELETE
  • Groups
    • Overview
    • Create Group
      POST
    • List Groups
      GET
    • Get Group Details
      GET
    • Update Group
      PUT
    • Delete Group
      DELETE
  • Statuses
    • Overview
    • Create Status
      POST
    • List Statuses
      GET
    • Get Status Details
      GET
    • Update Status
      PUT
    • Delete Status
      DELETE
  • Sources
    • Overview
    • Create Source
    • List Sources
    • Get Source Details
    • Update Source
    • Delete Source
  • Integrations
    • N8N Webhook Integration
    • Webhook Format Reference
    • eCommerce Webhook Integration
      • Webhook Listener
      • WooCommerce Webhook Setup
RASL | DashboardContact
RASL | DashboardContact
Instagram
  1. Templates

Send Authentication Template

POST
https://getrasl.io/api/v1/{tenant-name}/messages/template

The Send Auth Templates API allows you to send WhatsApp authentication.#

This is particularly useful for sending OTP (One-Time Password) messages for user verification and authentication flows.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Header Params

Body Params application/jsonRequired

Examples
This method allows RASL to automatically generate the OTP for you and send it to the specified phone number.
{
    "phone_number": "+201XXXXXXXXX",
    "template_name": "verify_otp",
    "template_language": "en",
    "auto_generate_otp": true
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://getrasl.io/api/v1//messages/template' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phone_number": "+201XXXXXXXXX",
    "template_name": "verify_otp",
    "template_language": "en",
    "auto_generate_otp": true
}'

Responses

🟢200Success
application/json
Body

Example
{
  "success": true,
  "message": "Template sent successfully",
  "data": {
    "message_id": "wamid.HBgLOTE5OTI1MTE5Mjg0FQIAERgSQzg4Q0Y5MTU4QTFFOTgxNzQA",
    "phone_number": "+201XXXXXXXXX",
    "otp": "123456",
    "status": "sent"
  }
}
🟠400Bad Request
🟠401Unauthenticated
🟠422Validation Errors
Previous
Get Template Details
Next
Send Template Message
Built with