> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modawer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Queue Message API

> Endpoints for queuing OTP and raw messages for asynchronous delivery

## Overview

Use these endpoints to queue OTP messages and raw WhatsApp payloads for delivery.

<Note>
  These endpoints queue messages for async processing. A successful `200 OK`
  response means the request was accepted for processing, not that the message
  has already been delivered.
</Note>

## Available endpoints

<CardGroup cols={2}>
  <Card title="Send OTP message" icon="paper-plane" href="/messages/send-otp">
    Send one OTP through Modawer's official WhatsApp account.
  </Card>

  <Card title="Send OTP from your WhatsApp account" icon="shield-check" href="/messages/send-otp-whatsapp-account">
    Send OTPs from a connected WhatsApp Business account.
  </Card>

  <Card title="Send raw message" icon="code" href="/messages/send-raw">
    Queue a raw WhatsApp template payload.
  </Card>
</CardGroup>

## Shared behavior

* Authentication is handled with the `X-API-KEY` header.
* Route-level JWT authentication is not required.
* When a dev token is used, messages are routed to the app's linked Telegram chats instead of the provided recipient.
* Send OTP Message uses Modawer's official WhatsApp account and is the fastest way to start sending OTPs.
* To send OTPs from a custom sender ID, use [Send OTP from Your WhatsApp Account](/messages/send-otp-whatsapp-account).
* OTP templates require a verified WhatsApp Business Account (WABA) when using your own sender.
* Utility and marketing templates can be sent from a linked WhatsApp account without completing business verification.

## Request conventions

* JSON property names are `camelCase`.
* OTP messages use the built-in `otp_code_1` authentication template.
* Raw messages wrap the WhatsApp payload in a top-level `payload` object.

## Next pages

<CardGroup cols={2}>
  <Card title="Link WABA account" icon="link" href="/setup/link-waba">
    Connect your WhatsApp Business Account and custom sender.
  </Card>

  <Card title="Number migration" icon="right-left" href="/setup/number-migration">
    Move an existing WhatsApp API number to Modawer.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Learn how app tokens and dev tokens behave.
  </Card>
</CardGroup>
