Vinq

Send and update leads

Two ways to connect your website, your database or your automations to Vinq. Pick the one that fits what you need:

1. Intake address (create leads)

Each workspace has its own address. An admin can find it in Settings, Lead intake. Send a POST there with JSON or a form. Each new lead is assigned to the team in turn. If the email or phone already exists, no duplicate is created: the lead's page notes that they came in again.

curl -X POST 'https://vinq.io/api/hooks/leads/YOUR_ADDRESS' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Ann Parker","email":"ann@company.com","phone":"+442079460123","company":"Company Ltd","source":"web"}'

Response: { "ok": true, "id": "…", "created": true }. You need at least a name, an email or a phone.

Anyone with that address can create leads in your workspace. Do not put it in the code of a public website: call it from your server, or from Zapier or Make.

What you can send

nameThe person’s name
emailEmail
phonePhone, ideally with the country code
companyCompany
locationCity or area
languageLanguage (es, ca, en…)
sourceWhere they came from (web, instagram…)
notesNotes
customYour own fields, by key: { "industry": "Clinics" }

Your field keys are in Settings, Fields. On the intake address you can also send them loose, without custom. A new value in a list field adds the option automatically.

2. API with a key (create, update and read)

Create a key in Connections, API and webhooks. It proves the request comes from you. It starts with vq_ and is shown only once. It goes in the header of every request:

Authorization: Bearer vq_…

The key acts as the person who created it, with their permissions: it sees the leads that person sees. For a workspace-wide integration, have an admin create it. It cannot create other keys or connect or disconnect accounts.

Create or update a lead

POST /api/contacts/upsert looks the lead up by email or phone. If it exists, it overwrites what you send (anything you leave out stays as it is). If not, it creates the lead and assigns it in turn. It accepts the fields above plus stage (the stage key) and assignedTo (the id of a team member).

curl -X POST 'https://vinq.io/api/contacts/upsert' \
  -H 'Authorization: Bearer vq_…' \
  -H 'Content-Type: application/json' \
  -d '{"email":"ann@company.com","company":"Company Ltd","stage":"won","custom":{"plan":"Pro"}}'

Response: { "contact": { "$id": "…", … }, "created": false }.

Your own fields, the easy way

The fields you created in Settings are sent loose, alongside the rest, by key or simply by name. Capitals, accents and spaces don't matter: Plan, plan and "Nº de empleados" all work.

curl -X POST 'https://vinq.io/api/contacts/upsert' \
  -H 'Authorization: Bearer vq_…' \
  -H 'Content-Type: application/json' \
  -d '{"email":"ann@company.com","Plan":"Pro","Employees":45,"Signup date":"2026-12-03"}'

If you already know the contact, send its id instead of the email. Anything Vinq does not recognise comes back in ignored, so you know what was not saved. A new value in a list field adds the option automatically. To clear a field, send null.

Every change is recorded on the contact's page, in the Changes tab: which value, from what to what, when, and with which key.

Everything else

GET /api/orgYour workspace: stages (key, label), fields (key, type, options) and rules.
POST /api/org/fieldsCreate a field (admin key): { "label": "Industry", "type": "select", "options": ["Clinics", "Bars"] }. type: text, number, date, select, multiselect, boolean, url.
POST /api/contactsAlways create a new lead: { "name": "…", "email": "…", "custom": { … } }. To create or update depending on whether it exists, use upsert.
GET /api/contactsEvery contact the key can see.
GET /api/contacts/:idOne contact.
POST /api/contacts/:idChange data: { "patch": { "company": "…", "followUpAt": "2026-12-10T09:00:00Z", "custom": { … } } }
POST /api/contacts/:id/stageMove to another stage: { "stage": "won" }
GET /api/contacts/:id/eventsTheir activity: calls, notes, meetings, emails.
POST /api/contacts/:id/eventsLog something: { "type": "note", "title": "Pago recibido", "text": "…" }. type: note, call or meeting.
GET /api/next-actionsThe "My day" list of the person who owns the key.

Everything is JSON. Dates are ISO 8601. An error returns { "error": "…" } with the reason and its status code: 400 (invalid data), 401 (invalid key), 403 (no permission), 404, 409 (conflict).

Supabase

An Edge Function that receives the database event and passes it on to Vinq. Store the key as a secret (supabase secrets set VINQ_KEY=vq_…) and create a Database Webhook on your table (Insert and Update) that calls this function.

// supabase/functions/vinq-lead/index.ts
Deno.serve(async (req) => {
  const { record } = await req.json() // the inserted or updated row
  const res = await fetch('https://vinq.io/api/contacts/upsert', {
    method: 'POST',
    headers: { Authorization: `Bearer ${Deno.env.get('VINQ_KEY')}`, 'Content-Type': 'application/json' },
    body: JSON.stringify({
      name: record.full_name,
      email: record.email,
      phone: record.phone,
      company: record.company,
      source: 'supabase',
      custom: { plan: record.plan }, // tus campos de Vinq, por su clave
    }),
  })
  return new Response(await res.text(), { status: res.status })
})

Appwrite

A function with the key in the VINQ_KEY variable, triggered by your collection's document create and update events.

// Appwrite function (Node). Events: databases.*.collections.YOUR_COLLECTION.documents.*.create and .update
export default async ({ req, res, log }) => {
  const doc = req.bodyJson // the created or updated document
  const r = await fetch('https://vinq.io/api/contacts/upsert', {
    method: 'POST',
    headers: { Authorization: `Bearer ${process.env.VINQ_KEY}`, 'Content-Type': 'application/json' },
    body: JSON.stringify({
      name: doc.name,
      email: doc.email,
      phone: doc.phone,
      company: doc.company,
      source: 'appwrite',
    }),
  })
  log(`Vinq: ${r.status}`)
  return res.json({ ok: r.ok })
}

AI agents (MCP)

The same key connects Claude, or any assistant that speaks MCP, so it can work in Vinq: check the day, find leads, log calls, schedule meetings or set up the workspace to fit the business.

claude mcp add --transport http vinq https://vinq.io/api/mcp --header "Authorization: Bearer vq_…"

For assistants that only ask for an address: https://vinq.io/api/mcp/vq_…. That address has the key inside it: treat it like a password.