Developer guide

Contact form

Send visitor messages to the dashboard inbox.

POST https://cms.af/api/public/v1/{domain}/contact with a JSON body. name and message are required, plus email or phone. Keep a hidden empty field called website in your form – bots fill it and are ignored.

await fetch("https://cms.af/api/public/v1/example.com/contact", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ name, email, phone, message, website: "" }),
});
Status Meaning
201 Saved
422 Missing or invalid field
403 Contacts module disabled on this plan
404 Website not found or not published
429 Too many messages, try later