Generate a one-time password and deliver it to a WhatsApp user using the Laravel SDK. The response includes the OTPDocumentation Index
Fetch the complete documentation index at: https://docs.hypersender.com/llms.txt
Use this file to discover all available pages before exploring further.
uuid, generated code, status, and expiry time so you can track validation.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| chatId | string | yes | WhatsApp chat ID of the recipient (e.g., [email protected]). |
| length | int | no | Code length (default 6). |
| useLetter | bool | no | Include letters (default false). |
| useNumber | bool | no | Include numbers (default true). |
| allCapital | bool | no | Uppercase letters when useLetter is true (default false). |
| name | string | no | Display name inside the message (e.g., your app name). |
| expires | int | no | TTL in seconds (default 1800). |
Send the request
- Store
uuidif you plan to track or audit the request. - Use
statusto monitor the send/validation lifecycle (pending,sent,validated,expired).
