API Documentation

Overview

This documentation provides a comprehensive guide on how to integrate and use our API to send WhatsApp OTP messages. Follow the steps to get started and learn how to send various types of messages, such as text, media, and location.

Getting Started

Step 1: Create an API Key

  • Visit the API Key Page to create your API key. This key is required to authenticate your requests.

Sending Different Types of Messages

Headers:

  • Authorization: Bearer <your-sanctum-token>

Body:

  • Use raw and JSON format for the body.

Example: Text Message

Endpoint: https://profile.otpia.com/api/send-message

POST

Parameters:

  • phone: The recipient's phone number without the + sign.
  • type: Type of message (e.g., text).
  • message: The content of the text message.

Example Request:

{
    "phone": "1234567890",
    "type": "text",
    "message": "Your OTP is: 898007."
}