Contact Form
Handle contact intake, notifications, and auto-replies. POST from your frontend to the public API, or host on contact.luno.rest.
What you have (done state)
| Item | State |
|---|---|
| Form | At least one contact form with a slug |
| Submit | POST …/contact-forms/{slug}/submit returns 200 |
| Inbox | Submission visible in Console |
| (Optional) | Autoreply, chat notify, or hosted page works |
When to use
- Site contact or lead forms
- Chat or CRM notifications on submit
- When you do not want to build the form UI yourself
Checklist
- [ ] Created a contact form in Console and chose a slug
- [ ] Test submit returns
ok: trueandsubmissionId - [ ] Submission appears in the Console inbox
- [ ] (Optional) Autoreply or Slack (etc.) notification arrives
Do this now
- Console → Contact forms → New (fields + notify addresses)
- Send a test submit
bash
curl -X POST "https://api.luno.rest/public/p/{projectId}/v1/contact-forms/contact/submit" \
-H "Content-Type: application/json" \
-d '{"name":"Test","email":"[email protected]","message":"hello"}'ts
await fetch(
'https://api.luno.rest/public/p/{projectId}/v1/contact-forms/contact/submit',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
name: 'Test',
email: '[email protected]',
message: 'hello',
}),
}
)bash
# "Submit a test contact form and confirm it arrived"- Implementation details: Contact forms
Next
| Goal | Page |
|---|---|
| Submit API & frontend examples | Contact forms |
| Public API | Public API · API only |
| Build via MCP (path A) | Agents done state |