API: pages, forms and one-time codes
Build pages from your own systems, read entries, check tickets in, add bills, and verify phone numbers with one-time codes.
The API covers pages and forms and one-time codes, next to contacts, messages, broadcasts, orders and bookings. The full reference, with examples in cURL, PHP, JavaScript and Python, is in the developer documentation at /docs.
What you can do
| Area | Examples |
|---|---|
| Pages and forms | Create a form or any other page from a starting point, change its content, publish it, delete it |
| Entries | List what people sent through a page, get one entry, cancel one |
| Tickets | Check a ticket in by its code, for your own scanner app |
| Bills | Add bills to a bill payment page from your billing system, list paid and unpaid ones |
| One-time codes | Send a code on WhatsApp or SMS and check what the person typed |
| Notifications | Send an approved template when something happens in your own system |
One-time codes for your website
Use them for sign-in, sign-up or checkout on your own site.
- Your server asks for a code to be sent to the person's number.
- The person types the code on your site.
- Your server asks whether the code is right.
The code is made and checked here and is never given to your server, so it cannot leak from it. A number can get one code every 30 seconds and five an hour. Five wrong tries lock a code.
On WhatsApp the code travels in an approved template. An authentication template is the right kind: create it in WhatsApp Manager, then click Sync on the Templates page.
Where to start
- Open API and webhooks and create a key with Read and write.
Open
/docsand follow one of the guides:- Verify a phone number with a one-time code
- Send notifications from your website
- Build a form or page from code
See also For developers.