whatsapp_link that opens WhatsApp with a pre-filled verification message.
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.
- Public HTTPS callback URLs on your server if you want to confirm the result server-to-server.
Request
POST https://app.hypersender.com/api/otp/v2/{instance}/generate-link
chatId. Set the lifetime in seconds with expires. The API schema does not specify a default. The message object customizes the verification messages. The callback URLs are optional; the API reference does not specify callback payload fields or a signing scheme.
What happens next
- In Postman, check for
success: true. Copydata.whatsapp_linkfrom the response and notedata.expires_at. The request starts in thependingstate. - Open the link on a test device and send the prefilled WhatsApp message. In production, your backend can associate the pending request with the intended user and your app can present the link to that user.
- If you configured callbacks, check which endpoint received the result. Test success, failure, and expiry before using the flow for sign-in.
The public API specification does not define a callback payload or signature. Confirm how to authenticate callbacks for your account before using one to authorize sign-in.
Troubleshooting
The link expires before users click it
The link expires before users click it
Increase
expires in the request body. For an expired attempt, generate a fresh link. Use message.expired to tell the user what to do next.No callback received
No callback received
Check that your HTTPS endpoint is publicly reachable and inspect your own server logs for the test request.
Next steps
Generate OTP Link reference
Full parameter reference for this endpoint.
OTP API overview
See how the code and link flows fit together.
Create your Hypersender account
Get your API token and instance UUID, connect a WhatsApp number, and generate your first login link.
Full API integration guide
Review the response, server example, and error handling.
Use Laravel
Generate an OTP link with the Laravel SDK.