Skip to main content
Docs menu

API reference

Integrations

List connected apps, start connect links, test and rename connections, set write switches, app triggers and Meta Lead Ads. Member tokens only.

Beta. These endpoints are switched on per organization. While they are off for yours, each one answers 403 integrations_api_off. Ask Finn support to turn them on.

Overview

The Integrations API does what a person does on the Integrations page in Finn: list connected apps, start a connect link, test and rename a connection, choose which writes agents may make, set up app triggers, wire Meta Lead Ads forms, and replay events. It is the API behind the MCP server's integrations_* tools.

This API never finishes a sign-in itself. Connecting an app that signs in with OAuth answers a link for a person to open; apps that take a password or API key are connected in Finn.

Base URL: https://api.hirefinn.ai/api/v1. See authentication and scopes.

Credential: member token only

Every endpoint here acts as one person. Call it with that person's own token: a personal MCP key (finn_mcp_...) or an AI app's OAuth access token (finn_oat_...). Each request is checked against that person's workspace role.

An org API key gets 403 forbidden. Org keys can read the connected integrations with GET /organization/integrations (admin:read) but can't change them.

If the person belongs to more than one organization, send Finn-Org with the organization's ID (without it: 400 org_required). GET /me/organizations lists the organizations a token can act in.

Scopes and roles

Reads take admin:read; writes take admin:write. The token also needs a workspace role at least as high as the Least role column (Owner, Admin, Supervisor, Member, View-only). A role below it gets 403 forbidden.

Bodies and answers are the dashboard's own shape, with camelCase keys. They never carry secrets. Errors from the gate, auth, scope and role checks use the shape on api-errors.

Writes marked Held answer 202 with "status": "pending_approval" and run once the person who made the call approves them in Finn. A row that names an action, such as Held (integration.delete), is always held; "Held unless relaxed" is held unless your organization relaxed that action. A held write needs approval holds on for your organization (403 approval_unavailable otherwise). See requests held for approval. Writes take an Idempotency-Key header.

Connections

MethodPathScopeLeast roleWhat it does
GET/integrationsadmin:readAny memberList connected apps and what can be connected.
GET/integrations/catalogadmin:readAny memberApps that can be connected, by category.
POST/integrations/requestsadmin:writeMemberAsk Finn to add an app that is not in the catalog.
GET/integrations/{connection_id}admin:readAny memberOne connection and its status (poll this after a connect link).
PATCH/integrations/{connection_id}admin:writeAdminRename a connection.
DELETE/integrations/{connection_id}admin:writeAdminRemove a connection. Held (integration.delete).
GET/integrations/{connection_id}/activityadmin:readAny memberRecent calls and events on a connection.
POST/integrations/{connection_id}/testadmin:writeMemberTest a connection and refresh its status.
PATCH/integrations/{connection_id}/settingsadmin:writeAdminSet which writes agents may make and which agents may use a connection. Held (integration.settings).
POST/integrations/{connection_id}/events/{event_id}/replayadmin:writeAdminReplay an event a connection received. Held (integration.event_replay).
MethodPathScopeLeast roleWhat it does
POST/integrations/connect_sessionsadmin:writeAdminStart connecting an app: a link for a person to open. Held unless relaxed.
POST/integrations/shopify/connect_sessionadmin:writeAdminStart connecting a Shopify store: a link for a person to open. Held unless relaxed.
POST/integrations/{connection_id}/reconnect_sessionadmin:writeAdminReconnect an app: a link for a person to open. Held unless relaxed.

A connect link lasts a short time (expiresAt). After the person finishes, poll GET /integrations/{connection_id} until status is connected; no webhook is sent. After a reconnect the status doesn't change by itself: call POST /integrations/{connection_id}/test once the person is done.

To hand a connect link to a person from an org key, use a hand-off (POST /handoffs with kind: "connect").

Meta Lead Ads

MethodPathScopeLeast roleWhat it does
GET/integrations/meta_lead_ads/configadmin:readAny memberMeta Lead Ads: can it connect, and the current connection.
GET/integrations/{connection_id}/meta/pagesadmin:readAdminMeta Pages on a connection and which are connected.
PUT/integrations/{connection_id}/meta/pagesadmin:writeAdminChoose which Meta Pages send leads.
GET/integrations/{connection_id}/meta/formsadmin:readAdminLead forms on the connected Meta Pages.
PUT/integrations/{connection_id}/meta/forms/{form_id}admin:writeAdminTurn a Meta lead form on or off and map its questions.
POST/integrations/{connection_id}/meta/forms/{form_id}/test_leadadmin:writeAdminSend a test lead through a Meta lead form. Held (integration.test_lead).

App triggers

MethodPathScopeLeast roleWhat it does
GET/integrations/{connection_id}/triggersadmin:readAny memberEvents this app can start work from.
GET/integrations/{connection_id}/triggers/sheet_columnsadmin:readAny memberA Google Sheet's tabs and headers, for a trigger's column map.
PUT/integrations/{connection_id}/triggers/{event}admin:writeAdminTurn an app trigger on or off and set what it does. Held (integration.trigger).
GET/integrations/{connection_id}/trigger_optionsadmin:readAny memberChoices for a trigger (event types, channels, pipelines).
GET/integrations/{connection_id}/trigger_eventsadmin:readAny memberRecent trigger events and what happened to each.
POST/integrations/{connection_id}/trigger_events/{event_id}/replayadmin:writeAdminRun a trigger event again. Held (integration.trigger_replay).
GET/integrations/{connection_id}/trigger_batchesadmin:readAny memberTrigger batches waiting for a person.

A trigger starts work in Finn from an event in the app: add a contact, start an agent, read a Google Sheet row. trigger_options lists the choices a trigger can take; trigger_batches lists batches waiting for a person.

Example: poll a connection

curl https://api.hirefinn.ai/api/v1/integrations/7c2e4b1a-9d3f-4e6a-8b0c-1f2a3b4c5d6e \
  -H "Authorization: Bearer $FINN_MCP_KEY"
{
  "connection": {
    "id": "7c2e4b1a-9d3f-4e6a-8b0c-1f2a3b4c5d6e",
    "provider": "hubspot",
    "providerName": "HubSpot",
    "logoUrl": null,
    "category": "crm",
    "label": "Sales HubSpot",
    "status": "connected",
    "settings": { "writes": {}, "finnIds": null },
    "metadata": {},
    "lastError": null,
    "lastTestedAt": "2026-11-20T09:12:00.000Z",
    "lastActivityAt": "2026-11-26T14:03:00.000Z",
    "createdAt": "2026-11-20T09:10:00.000Z",
    "webhookConfigured": false,
    "lastHealthCheckAt": null,
    "healthStatus": null
  }
}

settings.writes has one switch per write the app supports; finnIds: null means every agent may use the connection.

Rate limits

120 reads and 30 writes per minute per credential, across all Integrations endpoints. Over the limit: 429 rate_limited; wait Retry-After seconds. See rate limits.

Errors

StatusCodeWhen
400invalid_requestThe body or a parameter isn't valid.
400org_requiredThe person is in more than one organization and Finn-Org is missing.
401api_key_required, invalid_api_keyThe token is missing, unknown or revoked.
403integrations_api_offIntegrations by API aren't turned on for your organization.
403insufficient_scopeThe token lacks admin:read or admin:write.
403forbiddenAn org API key, or a role below the least role.
403approval_unavailableA held write while approval holds are off for your organization.
404not_foundNo such connection, event or form in this workspace.
409variousprovider_unavailable (the app can't be connected here), not_reconnectable (only OAuth connections reconnect here), authorization_pending (the person hasn't finished connecting), not_connected, reconnect_first or token_invalid (reconnect the Meta account), connected_elsewhere (the Meta Page is connected to another workspace), form_off.
423ai_apps_pausedAn admin paused all AI apps. Writes are refused; reads still work.
429rate_limitedOver the limit. Wait Retry-After seconds.
503unavailableThe organization's settings couldn't be read. Try again shortly.