Pingtochat Docs

Pingtochat Docs

Did You Know?

You can create any type of product documentation with Docy

leafleafleafDocy banner shape 01Docy banner shape 02Man illustrationFlower illustration

API

Estimated reading: 1 minute 9 views

Overview

The WhatsApp – Eazy OTP API allows you to send WhatsApp-approved One-Time Password (OTP) messages to users via a simple HTTP GET request.

This API is designed for secure authentication and verification using WhatsApp Business approved message templates, ensuring compliance with WhatsApp messaging policies.

URL

https://{{your_domain}}/api/v1.0/{{key}}/whatsappeazyotp

Method

GET

Headers

Content-Type: application/json
Authorization: Bearer <your_access_token>

Request Parameters

ParameterTypeRequiredDescription
numberStringYesRecipient WhatsApp number in international format (e.g., 919XXXXXXXXX)

Sample API Request

https://app.pingtochat.com/api/v1.0/xxxxxxxab340bb394410747c6b4171545ab380a0a901f77285b4577be/whatsappeazyotp?number=919XXXXXXXXX
https://app.pingtochat.com/api/v1.0/xxxxxxxab340bb394410747c6b4171545ab380a0a901f77285b4577be/whatsappeazyotp

Authentication

  • Authentication is handled using the API Key included in the URL.
  • Each API key is unique per account.
  • Keep your API key secure and do not share it publicly.

Response Format

Success Response (Example)

{
    "status": "success",
    "message": "WhatsApp OTP Sent Successfully",
    "track_id": "WA76B9FBQR3",
    "recipients": [
        {
            "mobile_number": "91xxxxxxxxxx",
            "status": "sent",
            "error_code": null,
            "error_description": null,
            "time": "2026-01-08 14:15:22"
        }
    ],
    "otp": "748219"
}

Failure Response (Example)

{
  "status": "error",
  "message": "Invalid WhatsApp number or service not activated"
}

Leave a Comment

Share this Doc

API

Or copy link

CONTENTS