Build a form or page from code
Everything you can build under Pages and forms can be built with the API: a catalogue store, a form or order form, an event with e-tickets, an invitation, an appointment page, a poll or a bill payment page. This guide builds an order form, reads its entries, and shows the two calls used at an event door and for bills.
-
Create the page #
Pick a starting point with
templateand lay your own content over it. Prices are in the currency’s smallest unit, so 149900 is 1,499.00.curl -X POST "https://chatilo.me/api/v1/pages" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "template": "form_order", "title": "Festive hamper order form", "publish": true, "content": { "headline": "Order your festive hamper", "intro": "Choose your hampers and tell us where to send them.", "button": "Place order", "items": [ { "name": "Classic hamper", "price": 149900 }, { "name": "Family hamper", "price": 249900 } ], "fields": [ { "label": "Delivery address", "type": "textarea", "required": true }, { "label": "Delivery slot", "type": "select", "required": true, "options": [ "Morning", "Evening" ] } ], "style": { "font_head": "Playfair Display", "c_bg": "#fff7ed" } } }'The answer is the page, with its public
url. Share that link in a broadcast, a flow or on your website. -
Change it later #
Send only what changes. A list inside
content, such asitemsorfields, replaces the whole list.curl -X PUT "https://chatilo.me/api/v1/pages/7" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "content": { "notice": "Order by Friday for weekend delivery" } }' -
Read what people sent #
curl "https://chatilo.me/api/v1/pages/7/entries?status=paid" \ -H "Authorization: Bearer YOUR_API_KEY"Each entry has the person, their answers, the items, the amount and, when money is involved, the
order_idthat carries the payment. Usesinceto fetch only new ones on a schedule.
What each kind of page takes #
- Form (
form_order,form_enquiry,form_service,form_registration):itemsandfields. - Event (
event_tickets,event_workshop,event_eticket):starts,venue,max_per_orderandticketsas name, price and limit. - Invitation (
invite_wedding,invite_birthday,invite_event,invite_housewarming):lead_in,starts,venue,map_url,dress,programme,rsvp_on,max_guests,rsvp_by. - Poll (
poll_quick,poll_feedback):options,show_results,ask_contact. - Bill payments (
bill_utility,bill_fees):account_labelandmode(lookuporopen). - Store (
store_general,store_clothing,store_menu):categories,ask_address,delivery_note. Products come from Products. - Appointments (
booking_doctor,booking_salon,booking_service):service_label,staff_label,ask_staff,pay_now. Services and hours come from Bookings. - Every kind:
headline,intro,notice,button,thanks,about,fields,sectionsandstyle(fonts, sizes and colours).
At the door: check a ticket in #
A scanner app reads the QR code or the 8-character code and calls:
curl -X POST "https://chatilo.me/api/v1/page-entries/TFKH6NKC/check-in" \
-H "Authorization: Bearer YOUR_API_KEY"A second call for the same ticket answers 409 already_checked_in. An unpaid or cancelled ticket answers 409 ticket_not_valid.
Bills from your billing system #
Push each bill to a bill payment page as it is issued. The payer finds it by account number, and it is marked paid when the payment arrives.
curl -X POST "https://chatilo.me/api/v1/pages/9/bills" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: bill-KL-4471-2026-11" \
-H "Content-Type: application/json" \
-d '{
"account_no": "KL-4471",
"amount": 184500,
"name": "Logan Menon",
"period": "November 2026",
"due_on": "2026-12-15"
}'curl "https://chatilo.me/api/v1/pages/9/bills?status=paid" \
-H "Authorization: Bearer YOUR_API_KEY"