The Vendra CRM API and webhooks.
The same records the CRM shows, reachable with a key. Read leads, contacts, companies, deals and tasks; create leads; receive every event as a signed webhook. Built for Zapier, Make, Google Sheets and your own code.
- Key per company
- 600 requests per 10 minutes
- Signed webhooks
GET ?r=leads&status=New&limit=1
Authorization: Bearer vk_live_...
{ "ok": true, "entity": "leads", "total": 12,
"items": [ { "name": "Anders Eksempel",
"company": "Eksempel ApS",
"status": "New", "source": "Website" } ] }
Authentication
Create a key under CRM → Integrations → Website & API. It is shown once. Send it as a bearer token on every request.
curl https://vendraone.com/api/api.php?r=me \
-H "Authorization: Bearer vk_live_..."
Keys are per company and carry a scope: read or read,write. Limit: 600 requests per 10 minutes per key. A revoked key stops working immediately.
Reading records
One resource per call. Filters are optional and combine.
| Request | Returns |
|---|---|
GET ?r=leads | id, name, company, email, phone, status, source, value, owner, score, next, tags, created, updated |
GET ?r=contacts | id, first, last, title, email, phone, mobile, companyId, tags, created, updated |
GET ?r=companies | id, name, domain, industry, size, phone, email, address, city, country, vat, tags |
GET ?r=deals | id, name, pipeline, stage, value, companyId, contactId, owner, close, prob, wonAt, lostAt |
GET ?r=tasks | id, title, type, due, time, prio, status, assignee, linkType, linkId, doneAt |
GET ?r=export&entity=leads | The same list as CSV (semicolon separated, UTF-8 with BOM, opens correctly in Excel) |
Filters: q (free text), status, since (milliseconds since 1970, on the updated timestamp), limit (max 200), offset.
GET https://vendraone.com/api/api.php?r=leads&status=New&limit=50
{
"ok": true, "entity": "leads", "total": 12, "limit": 50, "offset": 0,
"items": [
{ "id": "l_8f2a", "name": "Anders Eksempel", "company": "Eksempel ApS",
"email": "anders@eksempel.dk", "phone": "+45 12 34 56 78",
"status": "New", "source": "Website", "value": 24000, "score": 72,
"created": 1757145600000, "updated": 1757145600000 }
]
}
Creating a lead
A POST goes into the CRM inbox, exactly like the website form. The CRM checks it against existing phone numbers and email addresses and assigns an owner, so the answer is 202 queued, not 201 created.
POST https://vendraone.com/api/api.php?r=leads
Authorization: Bearer vk_live_...
Content-Type: application/json
{ "name": "Anders Eksempel", "email": "anders@eksempel.dk", "phone": "+45 12 34 56 78",
"company": "Eksempel ApS", "note": "Asked for a call about the CRM", "source": "Zapier" }
Webhooks
Connect Outgoing webhooks, Zapier or Make on your account page, or paste an https URL in the CRM under Integrations → Chat & alerts. Every CRM event is then POSTed as JSON from the Vendra One server and logged on the same screen. If your endpoint does not answer with a 2xx status, the delivery is retried automatically up to three more times, at the earliest 2 minutes, 15 minutes and 2 hours later, and is then marked as failed.
POST https://example.com/vendra-webhook
X-Vendra-Event: deal.won
X-Vendra-Delivery: 8123
X-Vendra-Timestamp: 1757145600
X-Vendra-Signature: sha256=3f1c...
{ "event": "deal.won", "ts": 1757145600123, "company_id": 42,
"data": { "name": "CRM for 14 seats", "value": 41000, "company": "Eksempel ApS" } }
Events: lead.created, deal.created, deal.stage, deal.won, ticket.created, invoice.paid, meeting.booked, and test from the Send test button.
The X-Vendra-Delivery header stays the same on every retry of one event. Store it, and ignore a delivery you have already handled.
Verifying the signature
The signature is an HMAC-SHA256 of timestamp + "." + rawBody with your signing secret (Integrations → Website & API). Reject anything older than five minutes.
// Node
const crypto = require("crypto");
function verify(req, rawBody, secret) {
const ts = req.headers["x-vendra-timestamp"];
const sig = (req.headers["x-vendra-signature"] || "").replace("sha256=", "");
const mine = crypto.createHmac("sha256", secret).update(ts + "." + rawBody).digest("hex");
return Math.abs(Date.now() / 1000 - ts) < 300 && sig.length === mine.length &&
crypto.timingSafeEqual(Buffer.from(mine), Buffer.from(sig));
}
// PHP
$raw = file_get_contents('php://input');
$ts = $_SERVER['HTTP_X_VENDRA_TIMESTAMP'] ?? '';
$sig = str_replace('sha256=', '', $_SERVER['HTTP_X_VENDRA_SIGNATURE'] ?? '');
$mine = hash_hmac('sha256', $ts . '.' . $raw, $secret);
$ok = abs(time() - (int)$ts) < 300 && hash_equals($mine, $sig);
Slack, Microsoft Teams and Discord
Chat channels get one short sentence per event, not JSON, in the format each service documents for its incoming webhooks. Choose which events in the CRM under Integrations → Chat & alerts. A test message is sent the moment you connect, so you can see that it arrived.
// Slack (hooks.slack.com)
{ "text": "Deal won: CRM for 14 seats · Eksempel ApS · 41.000 kr. — Vendra CRM" }
// Discord (discord.com/api/webhooks/…) — mentions are switched off
{ "content": "Deal won: …", "allowed_mentions": { "parse": [] } }
// Microsoft Teams (Workflows: Post to a channel when a webhook request is received)
{ "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive",
"content": { "type": "AdaptiveCard", "version": "1.4",
"body": [ { "type": "TextBlock", "text": "Deal won: …", "wrap": true } ] } } ] }
Each URL is checked against the service it claims to be: a Slack connection only accepts a hooks.slack.com address, Discord only discord.com, and Teams only a Workflows or Office 365 webhook address.
Recipes
Zapier
Out: trigger Webhooks by Zapier → Catch Hook, copy the hook URL, paste it as your Zapier connection. In: action Webhooks by Zapier → POST to /api/api.php?r=leads with the Authorization header and a JSON or form body.
Make
Out: a Webhooks → Custom webhook module gives you a URL to paste. In: an HTTP → Make a request module that POSTs to /api/api.php?r=leads.
n8n and other tools
Anything that can receive a webhook or make an HTTP call works the same way. To get events out, connect Outgoing webhooks with your tool's webhook URL. To get leads in, POST to the leads endpoint with your API key.
Google Sheets
Extensions → Apps Script, then a time-driven trigger on this function:
function pullVendraLeads() {
const res = UrlFetchApp.fetch("https://vendraone.com/api/api.php?r=export&entity=leads",
{ headers: { Authorization: "Bearer vk_live_..." } });
const rows = Utilities.parseCsv(res.getContentText("UTF-8"), ";");
const sh = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Leads") || SpreadsheetApp.getActiveSpreadsheet().insertSheet("Leads");
sh.clearContents();
sh.getRange(1, 1, rows.length, rows[0].length).setValues(rows);
}
WordPress, Webflow and any HTML form
The website form endpoint needs your site key (Integrations → Website & API) instead of an API key, because it is called from a browser. Post the fields key, name, email, phone, company, note, source to:
POST https://vendraone.com/api/public.php?a=web_lead
Content-Type: application/json
{ "key": "YOUR_SITE_KEY", "name": "…", "email": "…", "phone": "…", "company": "…", "note": "…", "source": "Website" }
A plain HTML form works too, with no JavaScript: point its action at the same URL and put the site key in a hidden field. After sending, the visitor sees a short thank-you page, or your own page if you add a redirect field with an address on the same site as the form. Leave the hidden _hp field empty: a bot that fills it in is answered politely and nothing is stored.
<form action="https://vendraone.com/api/public.php?a=web_lead" method="post">
<input type="hidden" name="key" value="YOUR_SITE_KEY">
<input type="hidden" name="redirect" value="https://example.com/thank-you">
<input name="name" required> <input name="email" type="email"> <input name="phone">
<textarea name="note"></textarea>
<input name="_hp" tabindex="-1" autocomplete="off" hidden>
<button>Send</button>
</form>
Shopify and WooCommerce
Create a webhook for Order creation (Shopify: Settings → Notifications → Webhooks; WooCommerce: Settings → Advanced → Webhooks) pointing at:
https://vendraone.com/api/public.php?a=shop_order&key=YOUR_SITE_KEY
Orders land on the customer card with lifetime value; Shopify checkout webhooks show up as abandoned carts in the CRM inbox.
Good to know
- Writes create leads only, for now. Contacts, deals and tasks are read-only through the API; the CRM remains the place they are edited, so its rules (duplicates, stages, ownership) always apply.
- Reads reflect the workspace as last saved by the CRM.
workspace_updated_attells you when that was. - Errors are JSON with
ok:falseand a sentence that says what to fix. 401 is the key, 402 the plan, 403 the scope, 422 the input, 429 the rate limit. - Workspace data is stored in the EU. Keys and signing secrets can be revoked or rotated at any time from the CRM.