REST API overview
View as MarkdownThe REST API lives at:
https://app.funnelone.ai/api/v1Every request needs a credential in the Authorization header: an API key,
or an OAuth access token issued for https://app.funnelone.ai/api/v1. See
Authentication. A workspace admin must also
turn on the REST API switch in Integrations, then Workspace integrations, then
MCP & API. Every error has one shape, described in
Errors; limits and Idempotency-Key are in
Limits.
The API reference lists every operation with its
parameters and schemas, rendered from the OpenAPI 3.1 document at
/openapi/v1.json. That document is generated from the
code that serves the API, so the two cannot disagree.
Endpoints
Section titled “Endpoints”| Endpoint | Scope | What it does |
|---|---|---|
POST /api/v1/leads |
leads.manage |
Send in a lead. |
POST /api/v1/events |
events.send |
Send a custom event. See Custom events. |
POST /api/v1/events/batch |
events.send |
Send up to 100 custom events. |
GET /api/v1/events |
events.send |
List the custom events received in the last 30 days. |
GET /api/v1/event-types |
events.send |
List your workspace’s event names. |
POST /api/v1/motions/{id}/start |
motions.start |
Start a motion for one company. |
GET /api/v1/me |
none | Who is calling, and the scopes the credential holds now. |
GET /api/v1/token |
none | The credential in use: its kind, id and expiry. |
POST /api/v1/leads
Section titled “POST /api/v1/leads”Send a lead from your own form, backend or tool. Funnel One matches it to a company and a contact where it can. This is the one way to send leads from your own systems: the separate Server collector address and its key were removed.
After the lead is saved, Funnel One runs your workspace’s lead-handling settings on it: enrichment when it is switched on, required fields, scoring and routing. A motion whose trigger is Lead sent through the API starts from it. A workspace can send 60 leads a minute through the API, across all its keys.
Body (JSON, up to 256 KB). A lead must include an email or a name, plus any
field your lead-handling settings require; everything else is optional.
| Field | Type |
|---|---|
email |
string |
first_name, last_name, name |
string |
title, seniority, department, phone |
string |
linkedin_url |
string |
company.domain (or company_domain) |
string |
company.name (or company_name) |
string |
utm.source, utm.medium, utm.campaign (or utm_source, utm_medium, utm_campaign) |
string |
custom_fields |
object, kept as sent |
Headers:
Idempotency-Key(optional). Send the same key and lead again within 24 hours and you get the first answer again, not a second lead.
Answers:
201withlead_id,status,is_test,company_id,contact_idandreconciled.400 invalid_lead,409 duplicate_request,403 insufficient_scope,429 rate_limited. See Errors.
POST /api/v1/motions/{id}/start
Section titled “POST /api/v1/motions/{id}/start”Start a motion for a company from your own systems. The motion must have an API call trigger in its entry settings.
Headers:
Idempotency-Key(required, 1 to 255 visible ASCII characters).
Body (JSON):
{ "companyId": 1234, "contactIds": [55, 56] }contactIds is optional, up to 50.
Answers:
202 { "status": "queued", "motionId", "companyId" }: accepted. Funnel One decides the entry shortly after, with the same checks as every other trigger.200 { "status": "decided", "outcome", "reasonCode", "reason", … }: you sent a key that was already decided, and this is that same decision.400 invalid_bodyoridempotency_key_required;404 motion_not_foundorcompany_not_found;409 api_trigger_missingorengine_off;422 idempotency_mismatchwhen the key was used for a different company.
A motion or company in another workspace answers 404, the same as one that
does not exist.
GET /api/v1/me and GET /api/v1/token
Section titled “GET /api/v1/me and GET /api/v1/token”Any valid credential may call these; no scope is needed. /me says who is
calling: the principal (user or service), the workspace, the person
accountable for the credential, and the scopes it holds right now. /token
describes the credential itself: its kind, id, expiry and, for an OAuth token,
its client and connection. A good first call to check a key works.
Embed endpoints
Section titled “Embed endpoints”The public endpoints under /api/v1 that Funnel One’s own form and booking
embeds call (/api/v1/forms/…, /api/v1/meeting-forms/…) are used by those
embeds, not called directly. They take the form’s public key, not an API key.
Versioning
Section titled “Versioning”The API is versioned by its URL and only grows inside v1. See the
versioning policy.