Metanow Docs
API & IntegrationReference

CRM Web Forms API

Send website leads to the CRM, and manage the forms they come through.

Admin routes need a session. Public routes need no login: the form's token in the URL is the only gate, so treat it as public.

MethodPathPermissionTool
GET/crm/lead-formscrm:readlist_crm_lead_forms
POST/crm/lead-formscrm:manage_stagescreate_crm_lead_form
PATCH/crm/lead-forms/:idcrm:manage_stagesupdate_crm_lead_form
DELETE/crm/lead-forms/:idcrm:manage_stagesdelete_crm_lead_form
GET/public/crm/lead-forms/:tokennone—
POST/public/crm/lead-forms/:tokennone—

A form in the admin routes carries submit_path, hosted_url (the hosted form page, on the tenant's own domain when it has one) and embed_code (an iframe of that page, ready to paste). To show the form in another language, replace /en/ in the page's address with /it/, /de/, /fr/ or /sq/.

Submit a lead

POST /public/crm/lead-forms/:token takes JSON or form-encoded fields.

FieldRequiredLimitNotes
nameyes200
emailyes320Must be a valid address.
phoneno50
companyno200
websiteno2,048
messageno5,000
utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid, fbclidno500 eachStored on the deal and shown in its note.
hp_fieldno200The spam trap. Leave it empty. If it's filled, the reply is still received, but no deal is made.

Any other field is kept in the deal's note, up to 20 fields and 500 characters each. A field's name must start with a letter or a digit, and only text, numbers and true/false values are kept.

curl -X POST "https://your-app.example/public/crm/lead-forms/<TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"name":"Lena Hofer","email":"lena@example.com","message":"We need a new website.","utm_source":"google"}'
StatusMeaning
202Accepted. status is received, or duplicate when an open deal already has this email and the message was added to it.
400name or email is missing or invalid, or a known field is too long.
404Unknown or inactive form. The reply doesn't say which.
429More than 20 posts in a minute from one IP address.

Send this from a server. A browser on another site is blocked by CORS, so to show a form in the visitor's browser, use the hosted page or its embed code.

Read a form's page

GET /public/crm/lead-forms/:token returns what the hosted page shows: name, organisation_name and, where set, legal (the privacy notice and footer). It returns no ids. An unknown or inactive form is a 404.

On this page