OneTapPass

Your Login Box is Leaking Customers.

OneTapPass replaces frustrating OTPs with a seamless One-Tap Pass via WhatsApp that delights users and boosts sign-up rates. Turn logins into conversions.

WhatsApp API Pricing

Transparent, pay-as-you-go pricing for our powerful WhatsApp verification and messaging API. No hidden fees, ever.

WhatsApp Cloud API Pricing

Affordable WhatsApp Verification & Cloud API Pricing: Get reliable and secure account verification with our official WhatsApp services at competitive rates. Our WhatsApp Cloud API ensures seamless integration for businesses looking to enhance user authentication and engagement. With transparent, pay-as-you-go pricing, you can trust OneTapPass for all your WhatsApp messaging needs, whether for verifications, customer support, or marketing.

WhatsApp OTP API

Simple and powerful examples to get you started with our API.

WhatsApp OTP API using cURL

curl -X POST https://api.onetappass.com/api/v1/ \
-H 'Authorization: Bearer API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
    "recipient":"+919876543210",
    "type":"otp",
    "code":"123456",
    "channel":"whatsapp"
}'

PHP Example using cURL

<?php
$api_url = 'https://api.onetappass.com/api/v1/';
$api_key = 'API_KEY'; // Replace with your actual API key

$data = array(
    'recipient' => '+919876543210',
    'type'      => 'otp',
    'code'      => '123456',
    'channel'   => 'whatsapp'
);

$headers = array(
    'Authorization: Bearer ' . $api_key,
    'Content-Type: application/json',
    'Accept: application/json'
);

$ch = curl_init($api_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

if ($response === false) {
    echo 'cURL Error: ' . curl_error($ch);
} else {
    echo 'Response: ' . $response;
}

curl_close($ch);
?>

PHP Example using Guzzle

<?php
require 'vendor/autoload.php'; // Make sure to include the Guzzle library
use GuzzleHttp\Client;

$api_url = 'https://api.onetappass.com/api/v1/';
$api_key = 'API_KEY'; // Replace with your actual API key

$data = array(
    'recipient' => '+919876543210',
    'type'      => 'otp',
    'code'      => '123456',
    'channel'   => 'whatsapp'
);

$headers = array(
    'Authorization' => 'Bearer ' . $api_key,
    'Content-Type'  => 'application/json',
    'Accept'        => 'application/json'
);

$client = new Client();

$response = $client->post($api_url, [
    'headers' => $headers,
    'json'    => $data
]);

$body = $response->getBody();
echo $body;
?>

Responses

Success

{
    "status": "success",
    "message_id": "RANDOM_ID",
    "recipient": "+919876543210",
    "code": "123456"
}

Failure

{
    "error": "detail of the error"
}