Endpoints
Contacts
Send sign-ups and enquiries from your website to your workspace.
Create a contact
POST /contactsAdds the person to Customers with the source Website. If a contact with the same phone, or else the same email, already exists, that contact is updated instead of a new one being created.
| Field | Rules |
|---|---|
name | Required. Up to 255 characters. |
phone | Required without email. With country code, for example +8801712345678. |
email | Required without phone. |
notes | Optional. Up to 5,000 characters, added to the contact's notes. |
whatsapp_opt_in, email_opt_in, sms_opt_in | Optional. true records consent for that channel. |
curl -X POST "https://<your-api-host>/api/public/v1/contacts" \
-H "X-Api-Key: mf_your_key" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{ "name": "Nadia Rahman", "email": "nadia@example.com", "email_opt_in": true }'Returns 201 with the contact.