chatId.
What you need
- A Hypersender account with an active instance.
- Your API token and instance UUID from the dashboard.
- Postman installed, or the OTP Postman collection imported.
- A WhatsApp number connected to your instance, or an Android phone running the Hypersender SMS app for SMS delivery.
Endpoints
Base URL
1. Request a code
chatId accepts a WhatsApp chat ID such as [email protected], or a phone number when you want the code delivered by SMS.
expires is the code lifetime in seconds. length, useLetter, useNumber, and allCapital control how the code is generated.
2. Validate the code
Send the samechatId together with the code your user typed:
Troubleshooting
404 or unknown instance
404 or unknown instance
The instance UUID in the URL does not belong to your account. Copy it again from the dashboard.
The code never arrives
The code never arrives
For WhatsApp, confirm the number is connected and the
chatId ends with @c.us. For SMS, confirm the Hypersender app is linked, online, and that you passed a phone number in international format.Validation rejects a valid code
Validation rejects a valid code
The code expired — the default TTL is 1800 seconds — or it was already used. Request a fresh code for the next attempt.
Next steps
Request OTP Code
Full parameter reference for the send step.
Validate OTP Code
Full parameter reference for the verification step.
Create your Hypersender account
Get your API token and instance UUID, connect a number, and send your first OTP.