Connect a WordPress Site
Your WordPress website's contact form can send every entry to Cubrel as a lead, so nobody copies enquiries by hand. This works with any form plugin; the only question is how the entry gets to Cubrel.
You need the Admin role in Cubrel. The REST API is on every plan.
Two ways in
| Way | When to use it |
|---|---|
| Straight from the form plugin | Your plugin can send a submission to a web address with your own headers and a JSON body. Some plugins can, often with a webhook add-on. |
| Through Zapier, Make or n8n | Your plugin can send to a webhook, or the tool has an app for your plugin. Then the tool sends the lead to Cubrel. |
Both end with the same request to Cubrel.
1. Create a token for the form
In Cubrel, go to Workspace > Integrations > API Tokens > New Token:
- Name: after the website, like "Website contact form".
- User: the person who should own new leads.
- Full Access: off. Give only Write on Leads, so a leaked token can't read anything.
See API Tokens.
2. Send the entry to Cubrel
Whichever way you choose, the form's entry goes to Cubrel like this:
| Setting | Value |
|---|---|
| Address | https://yourcompany.cubrel.com/api/v1/leads?match=email |
| Method | PUT |
| Headers | Authorization: Bearer followed by the token; Content-Type: application/json |
| Body | The form fields mapped to first_name, last_name, email, phone, company; plus lead_source set to website and source_detail with the page or the message |
?match=email means someone who sends the form twice stays one lead, updated with the latest details. See Create or update by a field.
From the plugin: fill in the address, method, headers and body in the plugin's webhook or "send to URL" setting. Keep the token in the plugin's settings on the server; it must never appear in the page itself.
Through a tool: let the plugin send to the tool's webhook address, then add the Cubrel request as the next step; see Connect Zapier, Connect Make or Connect n8n.
3. Test it
Send the form once yourself. The lead should appear in Leads within seconds, owned by the token's user. If it doesn't:
- A wrong or missing token gives a
401; a token without Write on Leads gives a403. - A missing required field or a field name Leads doesn't have gives a
422that names it. Check the names against the token's OpenAPI file; see Downloading the OpenAPI file.
Where the plugin or tool shows its log, the answer from Cubrel is there.
What comes next
New leads can start a workflow: a welcome email, a call task for the owner, a note to Sales. The walkthrough Leads Arrive on Their Own builds exactly that.
In short
| Question | Answer |
|---|---|
| Which form plugin? | Any that can send to a web address, directly or through Zapier, Make or n8n |
| What may the token do? | Only Write on Leads |
| How do I avoid duplicate leads? | PUT with ?match=email |
| Where does the token go? | In the plugin's or tool's settings, never in the page |
| What happens to the lead next? | A workflow, see Leads Arrive on Their Own |