Skip to main content

API reference

Scopes

What each API key scope allows, defaults and redaction.

Beta. Scopes are live. The list can grow before general availability.

Overview

Every API key carries scopes. A scope decides which endpoints the key may call. Pick them when you create the key in Finn under Settings → API → API keys. Scopes can't be changed on an existing key: create a new key and revoke the old one.

If you are building an AI agent, give it its own key with only the scopes it needs. An agent that reads records and adds notes needs crm:write, nothing else.

The scopes

The key dialog groups these by product: Voice, Contacts, AI employees, Chat, Dialer and Organization.

ScopeAllowsEndpoints
voice:readRead voice agents and calling, nothing more: no calls, no changesThe GET endpoints tagged Calls, Finns, Voices, Phone numbers, Audiences, Deployments, Wallet, and listing do-not-call numbers
voiceVoice agents and callingEvery endpoint tagged Calls, Finns, Voices, Phone numbers, Audiences, Deployments, Wallet, and listing and adding do-not-call numbers
dnc:writeTake a number off the do-not-call list, so Finn may call it againDELETE /do_not_call/{phone}
crm:readRead records, kinds, fields and timelinesGET /record_kinds, GET /fields, GET /contacts, GET /contacts/{id}, GET /contacts/{id}/timeline
crm:sensitive:readSee the values of fields marked sensitiveSame reads; without it those values are hidden
crm:writeCreate and update records, add notesPOST /contacts, PATCH /contacts/{id}, POST /contacts/{id}/notes
cases:readRead Finn Operator cases and approvalsGET /cases, GET /cases/{id}, GET /cases/{id}/events, GET /approvals, GET /approvals/{id}
cases:writeStart a casePOST /agents/{id}/cases
operator:buildCreate, draft, validate and test AI employees. Never publish: only a person signed in to Finn does that.POST /agents, POST /agents/draft, PUT /agents/{id}/draft, POST /agents/{id}/validate, POST /agents/{id}/test
approvals:writeDecide an approvalPOST /approvals/{id}/decide, /approve, /reject
chat:readRead the chat inbox through the Chat APIGET /chat/channels, GET /chat/conversations, GET /chat/conversations/{id}, GET /chat/conversations/{id}/messages, GET /chat/contacts, GET /chat/contacts/{id} on https://api.hirefinn.ai/v1
chat:writeSend WhatsApp, SMS and email, start conversations, edit chat contactsPOST /chat/conversations, POST /chat/conversations/{id}/messages, PATCH /chat/contacts/{id}
dialer:readRead the parallel dialerGET /dialer/sessions, GET /dialer/sessions/{id}, GET /dialer/analytics, GET /dialer/follow-ups, GET /dialer/leads/{id}/brief
dialer:writeRolling out. Update finished dialer calls: mark a follow-up done, set a call's disposition, add a call note. Never dials. Needs dialer writes turned on for your organization (ask Finn support); until then these answer 404.POST /dialer/follow-ups/{call_id}/done, PUT /dialer/calls/{call_id}/disposition, POST /dialer/calls/{call_id}/notes
admin:readRead the organization's profile, members, connected integrations and API key names (never the keys)GET /organization, GET /organization/members, GET /organization/integrations, GET /organization/api_keys
admin:webhooksManage webhook endpoints (Manage webhooks in the dialog). Needs webhook endpoints by API turned on for your organization (ask Finn support).GET, POST /webhook_endpoints, GET, PATCH, DELETE /webhook_endpoints/{id}, GET /webhook_endpoints/{id}/deliveries, GET /events

A write scope includes the read it builds on:

  • crm:write and crm:sensitive:read include crm:read.
  • cases:write and approvals:write include cases:read.
  • chat:write includes chat:read.
  • operator:build includes reading the agents and test cases it builds.
  • dnc:write includes voice, and voice includes voice:read.

Product scopes

Under the names above, every scope is a product scope, named product:access. A 403 insufficient_scope names the product scope in required_scope, and the API reference names it in x-required-scope. POST /api/api-keys also accepts these names directly. The older names stand for:

Name in the key dialogProduct scopes
voicevoice:read, voice:write
dnc:writevoice:dnc:write
cases:readoperator:read, approvals:read
cases:writeoperator:write
Product scopeAllows
voice:readRead calls, Finns, voices, phone numbers, audiences, deployments, wallet, do-not-call list
voice:writePlace calls; create and change Finns, numbers, audiences, deployments; add do-not-call numbers
voice:dnc:writeRemove a number from the do-not-call list (Finn may call it again)
crm:readRecords, record kinds, fields, timeline
crm:sensitive:readValues of fields marked sensitive (redacted without it)
crm:writeCreate and update records, add notes
crm:stageMove a record between stages, submit forms
crm:docs:writeAttach files to records
crm:importImport records in bulk
crm:shareMake links that send a form or upload page outside Finn
operator:readOperator cases and their events
operator:writeStart an Operator case
operator:buildCreate, draft, validate and test Operator agents (never publish: only a person does)
approvals:readPending approvals
approvals:writeApprove or reject a pending approval
chat:readChat channels, conversations, messages and chat contacts
chat:writeSend chat messages, start conversations, edit chat contacts
sales:readSales AI plays, runs, prospects, drafts and threads
sales:writeRun a Sales AI play; edit or skip a draft (never approve or send)
dialer:readParallel dialer sessions, analytics, follow-ups and cached lead briefs
dialer:writeRolling out: mark dialer follow-ups done, set a finished call's disposition, add call notes (never dials)
admin:readOrganization profile, members, integrations and API key metadata (read only)
admin:webhooksCreate, change and delete webhook endpoints, read their deliveries and the event list
finn:readRead Finn agents: settings, call flow, variables, share link, stats
finn:writeEdit draft Finn agents, duplicate or AI-generate one, get a share link (never publish)

A write includes its read here too: voice:write includes voice:read, crm:* writes include crm:read, operator:write and operator:build include operator:read, approvals:write includes approvals:read and operator:read, chat:write, sales:write, dialer:write and finn:write include their reads. An org key's voice:read and voice:write also count for the finn:read and finn:write endpoints. admin:write is reserved: no endpoint uses it yet.

Endpoints by scope

Generated from the API's OpenAPI spec (x-required-scope), 191 operations. A 403 insufficient_scope names the scope in this first column.

ScopeOlder nameEndpoints
admin:readGET /organization, GET /organization/members, GET /organization/integrations, GET /organization/api_keys, GET /usage
admin:webhooksGET /webhook_endpoints, POST /webhook_endpoints, GET /webhook_endpoints/{id}, PATCH /webhook_endpoints/{id}, DELETE /webhook_endpoints/{id}, GET /webhook_endpoints/{id}/deliveries, GET /events, POST /webhook_endpoints/{id}/test, POST /webhook_endpoints/{id}/deliveries/{delivery_id}/redeliver, POST /webhook_endpoints/{id}/rotate_secret
approvals:readcases:readGET /approvals, GET /approvals/{id}
approvals:writePOST /approvals/{id}/decide, POST /approvals/{id}/approve, POST /approvals/{id}/reject
audit:readGET /audit_events
billing:readGET /invoices, GET /invoices/{invoice_id}, GET /contacts/{contact_id}/balance
billing:writePOST /invoices/{invoice_id}/payments, PUT /invoices/{invoice_id}/case
chat:readGET /chat/channels, GET /chat/conversations, GET /chat/conversations/{id}, GET /chat/conversations/{id}/messages, GET /chat/contacts, GET /chat/contacts/{id}, GET /chat/agents/{agent_id}
chat:writePOST /chat/conversations, POST /chat/conversations/{id}/messages, PATCH /chat/contacts/{id}, PATCH /chat/agents/{agent_id}, POST /chat/agents/{agent_id}/test_turn
crm:docs:writePOST /crm/records/{id}/files
crm:importPOST /crm/imports/columns, POST /crm/imports
crm:readGET /record_kinds, GET /fields, GET /contacts, GET /contacts/{id}, GET /contacts/{id}/timeline, GET /crm/setup, GET /crm/filter_schema, POST /crm/records/search, POST /crm/records/query, POST /crm/records/query/count, POST /crm/records/query/stage_counts, GET /crm/records/{id}, GET /crm/records/{id}/timeline, GET /crm/records/{id}/stage_gate, GET /crm/records/{id}/documents, GET /crm/records/{id}/files, GET /crm/records/{id}/forms_checklist, GET /crm/records/{id}/submissions, GET /crm/records/{id}/form_drafts, GET /crm/forms, GET /crm/follow_ups, GET /crm/follow_ups/stats, GET /crm/my_work, GET /crm/views, GET /crm/summary, GET /crm/stage_counts, GET /crm/speed, GET /crm/duplicates, POST /crm/ask, GET /crm/cases, GET /crm/pipelines, GET /crm/cases/{id}, GET /crm/cases/{id}/stage_gate, GET /crm/cases/{id}/documents, GET /crm/cases/{id}/forms_checklist, GET /crm/cases/{id}/timeline, GET /crm/cases/{id}/follow_ups, GET /crm/cases/{id}/parties, GET /crm/records/{id}/cases, GET /crm/records/{id}/relations
crm:sharePOST /crm/records/{id}/forms/{form_id}/links, POST /crm/records/{id}/upload_links
crm:stagePOST /crm/records/{id}/stage_moves, POST /crm/records/{id}/forms/{form_id}/submissions, POST /crm/cases/{id}/stage_moves
crm:writePOST /contacts, PATCH /contacts/{id}, POST /contacts/{id}/notes, PATCH /crm/records/{id}, POST /crm/views, POST /crm/records/{id}/notes, POST /crm/records/{id}/follow_ups, PATCH /crm/follow_ups/{id}, POST /crm/records, PUT /crm/records/{id}/stage_checks/{stage}/{check}, POST /crm/records/{id}/ref_no, POST /crm/records/{id}/documents/{type}/status, PUT /crm/records/{id}/forms/{form_id}/draft, POST /crm/records/{id}/doc_drafts, POST /crm/cases, PATCH /crm/cases/{id}, POST /crm/cases/{id}/parties, PATCH /crm/cases/{id}/parties/{party_id}, DELETE /crm/cases/{id}/parties/{party_id}, POST /crm/records/{id}/relations, DELETE /crm/records/{id}/relations/{relation_id}
dialer:readGET /dialer/sessions, GET /dialer/sessions/{id}, GET /dialer/analytics, GET /dialer/follow-ups, GET /dialer/leads/{id}/brief
dialer:writePOST /dialer/follow-ups/{call_id}/done, PUT /dialer/calls/{call_id}/disposition, POST /dialer/calls/{call_id}/notes
finn:readGET /finns/{finn_id}/flow, GET /finns/{finn_id}/settings, GET /finns/{finn_id}/variables, GET /finns/{finn_id}/share_link, GET /finns/{finn_id}/stats, GET /finns/{finn_id}/outcomes
finn:writePOST /finns/generate, POST /finns/{finn_id}/flow/enable, POST /finns/{finn_id}/flow/disable, PATCH /finns/{finn_id}/variables, PATCH /finns/{finn_id}/handbook, PATCH /finns/{finn_id}/speech_settings, PATCH /finns/{finn_id}/draft, POST /finns/{finn_id}/duplicate, POST /finns/{finn_id}/share_link
noneGET /me/organizations, POST /agents/{id}/publish
operator:buildPOST /agents, POST /agents/draft, PUT /agents/{id}/draft, POST /agents/{id}/validate, POST /agents/{id}/test, POST /agents/{id}/archive, POST /cases/{id}/test/{action}
operator:readcases:readGET /cases, GET /cases/{id}, GET /cases/{id}/events, GET /agents, GET /agents/{id}
operator:writecases:writePOST /agents/{id}/cases
sales:readGET /sales/plays, GET /sales/plays/{slug}/runs, GET /sales/plays/{slug}/prospects, GET /sales/drafts, GET /sales/threads, GET /sales/threads/{id}
sales:writePOST /sales/plays/{slug}/run, PATCH /sales/drafts/{id}, POST /sales/drafts/{id}/skip
voice:dnc:writednc:writeDELETE /do_not_call/{phone}
voice:readvoiceGET /calls, GET /calls/{call_uuid}, GET /finns, GET /finns/{finn_id}, GET /finns/{finn_id}/knowledge_base, GET /voices, GET /voices/{voice_id}, GET /phone_numbers, GET /phone_numbers/available, GET /phone_numbers/{id}, GET /audiences, GET /audiences/{audience_id}, GET /audiences/{audience_id}/contacts, GET /deployments, GET /deployments/{id}, GET /wallet, GET /wallet/transactions, GET /deployments/{id}/analytics, GET /finns/{finn_id}/post_call_analysis, GET /do_not_call
voice:writevoicePOST /calls, POST /finns, PATCH /finns/{finn_id}, DELETE /finns/{finn_id}, POST /finns/{finn_id}/knowledge_base, POST /phone_numbers, DELETE /phone_numbers/{id}, POST /audiences, DELETE /audiences/{audience_id}, POST /audiences/{audience_id}/contacts, DELETE /audiences/{audience_id}/contacts/{phone}, POST /deployments, POST /deployments/inbound, POST /deployments/{id}/stop, POST /deployments/inbound/{finn_id}/stop, POST /do_not_call

Defaults

  • A new key with no scope picked gets voice only. A key needs at least one scope.
  • A key created before scopes existed keeps access to every endpoint, with two exceptions: it can't decide approvals or list the whole team's approvals, and it can't remove do-not-call numbers. Create a key with approvals:write or dnc:write for those. It also keeps full access to the Chat API.
  • approvals:write decides approvals only when your organization has turned on approval decisions by API key. It is off by default; ask Finn support. Until then decisions return 403 approvals_by_api_off.

Missing scope

A request without the scope it needs returns 403:

{
  "error": {
    "code": "insufficient_scope",
    "message": "This API key does not have the crm:write scope. Create a key with it in Finn: Settings > Integrations > API keys.",
    "fields": [],
    "required_scope": "crm:write",
    "request_id": "req_f1163584cc33f433b9f33390bdc7aa84",
    "doc_url": "https://api.hirefinn.ai/docs/errors#insufficient_scope"
  }
}

Nothing was done. Don't retry with the same key. The rate limit is counted before the scope check, so these requests still count toward it.

In the API reference, each operation names its scope in its description and in the x-required-scope field.

Sensitive fields

A workspace can mark custom fields as sensitive (passport number, medical notes). Without crm:sensitive:read, record reads replace each such value:

{ "redacted": true, "set": true, "hint": "••••4821" }
  • set says whether the field has a value.
  • hint (the last 4 characters) appears only for short ID-like values, never for free text.

Webhooks are not redacted: they go to endpoints you set up in Finn.

What a key can never do

Some actions stay with people in Finn, whatever the key's scopes:

  • Move a record past a stage check (409).
  • Decide a payment approval, or approve an edited proposal.
  • Decide approvals in bulk.
  • Change a record's owner, links or files.
  • Manage API keys. (Webhook endpoints are managed with admin:webhooks.)