Skip to content
v1
Get an API key

REST API overview

View as Markdown

The REST API lives at:

https://app.funnelone.ai/api/v1

Every 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.

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.

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:

  • 201 with lead_id, status, is_test, company_id, contact_id and reconciled.
  • 400 invalid_lead, 409 duplicate_request, 403 insufficient_scope, 429 rate_limited. See Errors.

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_body or idempotency_key_required; 404 motion_not_found or company_not_found; 409 api_trigger_missing or engine_off; 422 idempotency_mismatch when 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.

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.

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.

The API is versioned by its URL and only grows inside v1. See the versioning policy.