# WhatsApp otp


# Description

You can use this API to send WhatsApp otp code the code will be available 5 minutes.

# Endpoint

POST https://019sms.co.il/whatsapp-api/send-otp-whatsapp
Name Type Required
Authorization Bearer authentication ✔️
Content-Type application/json ✔️

# Parameters

Name Type Description Required
phone int Must be formatted: 5xxxxxxx or 05xxxxxxx ✔️
app_id int If you have several applications that you want to use with this service - use to differentiate the authentication in each application. By default it is 1
max_tries int A number between 3-5. which means how many attempts you can make on the code. By default it is 3
language int You can choose language, 1 for english 2 for hebrew. By default it is 1

# Request example

POST whatsapp-api/send-otp-whatsapp HTTPS/1.1
Content-Type: application/json
{ 
    "phone":"972555555555",
    "app_id":"1000",
    "max_tries":"3",
    "language":"1"
}

# Response Example


Content-Type: application/json
{ 
        "data": {
        "status": 0,
        "code": "407526",
        "message": "The code is: 407526 and is valid for 5 minutes"
    }
}

Note

Full description of the response status and message can be found in here:

Last Updated: 5/15/2025, 12:27:36 PM