Skip to content
v1
Get an API key

Every REST API error has the same shape. Match on code, not on message, which is written for people and can change.

{
"error": {
"type": "permission",
"code": "insufficient_scope",
"message": "This credential does not hold the 'leads.manage' scope.",
"param": null,
"doc_url": "https://dev.funnelone.ai/errors/insufficient_scope",
"request_id": "req_3kQ9xYv1bWm2Lp0a"
}
}
Field Means
type The kind of error: invalid_request, authentication, permission, not_found, conflict, rate_limit, idempotency or server.
code The exact error, listed below.
message A sentence that explains it.
param The request field at fault, or null.
doc_url A link to this reference.
request_id The same as the F1-Request-Id header. Quote it if you contact us.

Every answer, error or not, carries an F1-Request-Id header. Send X-Request-Id to choose it yourself (up to 64 letters, digits, _, ., -).

Status Code Means Fix
401 invalid_credential The Authorization header is missing, or the credential is unknown, revoked or expired. The answer is the same whatever the reason, on purpose. In a workspace that requires company sign-in (SSO), an OAuth connection whose last company sign-in is more than 24 hours old gets this answer too. Send Authorization: Bearer <credential>. If it was revoked, ask an admin for a new one. An OAuth app connects again, and the person signs in through their company.
403 api_disabled The REST API is turned off for this workspace. An admin turns it on in Integrations > Workspace integrations > MCP & API.
403 two_factor_required The workspace requires two-factor authentication, and the person behind this OAuth token has not set it up. The connection is paused, not removed. The person sets up two-factor in Funnel One; the next request works.
403 plan_required The workspace’s plan does not include this endpoint. See Plans. An admin changes the plan in Settings, Billing.
403 insufficient_scope The credential lacks a scope this endpoint needs. The WWW-Authenticate header names every missing scope. Ask an admin for a credential with that scope. See Scopes.
403 workspace_read_only The workspace is read-only because it is frozen (an invoice is unpaid) or its plan was canceled. Every request that changes something (any method but GET) gets this answer; reads still work. An admin pays the open invoice or reactivates the plan in Settings > Billing; the next request works.
404 route_not_found There is no such endpoint. Check the method and path.
429 rate_limited Too many requests this minute, from this credential or from the whole workspace. Wait the seconds in Retry-After. See Limits.
500 internal_error Something failed on our side. Retry. If you sent an Idempotency-Key, reuse it.

The REST API and the MCP server are part of the paid plans. A request the workspace’s plan does not include answers 403 plan_required, and its message names the plan that includes it.

Plan What it includes
Free No REST API or MCP calls. Every request is refused.
Team The MCP server, POST /api/v1/leads, GET /api/v1/me and GET /api/v1/token.
Scale and Enterprise All of Team, plus custom events (/api/v1/events, /api/v1/events/batch, /api/v1/event-types) and POST /api/v1/motions/{id}/start.

The plan also sets how many requests the workspace can make a minute. See Limits.

Status Code Means
400 invalid_body The body does not match the endpoint’s schema. param names the field, for example contactIds[3].
400 invalid_parameter A path or query parameter is not valid. param names it.
400 invalid_json The body is not JSON.
413 body_too_large The body is larger than the endpoint accepts.
415 unsupported_encoding The body is not UTF-8.
Status Code Means
400 idempotency_key_required This endpoint needs an Idempotency-Key header.
400 idempotency_key_invalid The key is not 1 to 255 visible ASCII characters.
409 idempotency_in_flight A request with this key is still running. Retry after Retry-After.
422 idempotency_mismatch This key was already used for a different request. Use a new key.
Status Code Means
400 invalid_lead The lead cannot be saved; message says why (for example, it has neither an email nor a name).
409 duplicate_request A lead was already sent with this Idempotency-Key, more than 24 hours ago. No second lead was created.

For POST /api/v1/events, POST /api/v1/events/batch, GET /api/v1/events and GET /api/v1/event-types. In a batch, the 422 codes are reported on each refused event instead. Details in Custom events.

Status Code Means
400 invalid_cursor The cursor is not one this list issued. Start again without it.
413 batch_too_large More than 100 events in one batch.
413 body_too_large The body is larger than 256 KB.
422 invalid_request The event breaks a rule the schema cannot check, such as a domain that is not a domain.
422 event_too_old occurred_at is more than 30 days ago.
422 event_in_future occurred_at is more than 5 minutes ahead.
422 event_blocked Events with this name are blocked in this workspace.
422 pii_property A property’s name is on the personal-data list.
422 pii_value A property’s value looks like an email address or a card number.
422 property_type_mismatch A property arrived with a different type than before.
422 too_many_properties The event name would have more than 50 different properties.
422 event_type_limit The workspace already has 200 event names.
429 events_rate_limited The workspace sent 1,000 events this minute or 100,000 today (UTC). Wait Retry-After.
429 ingest_backlogged The workspace’s earlier events are still being processed. Wait Retry-After.
503 events_unavailable Events cannot be accepted right now. Retry after Retry-After; every event keeps its id.
Status Code Means
404 motion_not_found No such motion in this workspace.
404 company_not_found No such company in this workspace.
409 api_trigger_missing The motion has no API call trigger. Add one in the motion’s entry settings.
409 engine_off The workspace’s agents are switched off. Nothing was queued.

The MCP server answers in JSON-RPC, not in the shape above.

Status Code Means
401 invalid_token No token, or one that is unknown, expired, revoked or issued for a different resource. The WWW-Authenticate header tells the client where to sign in.
401 sso_reauth_required The workspace requires company sign-in (SSO), and the person’s last company sign-in for this connection is more than 24 hours old. The client connects again and the person signs in through their company. The REST API answers 401 invalid_credential instead.
403 plan_required The workspace’s plan does not include the MCP server. See Plans.
403 mcp_disabled The MCP server is turned off for this workspace. An admin turns it on in Integrations > Workspace integrations > MCP & API.
403 two_factor_required The workspace requires two-factor authentication and the person has not set it up. The body carries a setup_url; the connection works again as soon as they do.
403 insufficient_scope A tool needs a scope the connection lacks. data.scopes in the JSON-RPC error lists them, and so does WWW-Authenticate.
403 workspace_read_only ask_f1 is refused while the workspace is frozen (an invoice is unpaid) or its plan was canceled, because Funnel One could change records or raise approvals from it. data.error is workspace_read_only, and data.state names why: frozen, or the workspace’s canceled state. The read tools still work.

An MCP error carries a JSON-RPC error.code. These are every code the MCP server sends.

Code Name Means
-32700 Parse error The body is not JSON.
-32600 Invalid request Not one JSON-RPC 2.0 request or notification, a wrong Content-Type or Accept, a disallowed Origin, a body over 1 MB, a method the endpoint does not allow, or too many failed sign-ins from one address.
-32601 Method not found The JSON-RPC method does not exist.
-32602 Invalid params An unknown tool name, or tool arguments that are not an object.
-32603 Internal error Something failed on our side, or sessions are unavailable for a moment. Retry.
-32001 Session not found A legacy session that does not exist, has expired or is not this caller’s. Send initialize again.
-32003 Insufficient scope A tool needs a scope the connection lacks. Sent with 403; data.scopes lists them.
-32004 Stream limit Too many open streams for this connection or this workspace (429, data.scope says which), or the server holds as many as it can (503 with Retry-After). Close a stream, or retry later.
-32005 Workspace read-only ask_f1 is refused because the workspace is frozen or its plan was canceled. Sent with 403; data.error is workspace_read_only and data.state says why. The read tools still work.
-32020 Header mismatch The MCP-Protocol-Version header is missing, or does not match params._meta.
-32022 Unsupported version The protocol version is not one the server speaks. data.supported lists the ones it does.