API Key Management

Create Horizon API keys, choose what each key may do or give it full access, choose which boards it can reach, and rotate, revoke or delete keys from Settings. Revoke or remove the AI apps connected through the MCP connector, or turn the connector off. See your organization's API usage, and buy, switch or cancel its API tier.

API keys let a program call the Horizon API on behalf of your organization. You create and manage them on the API Keys tab of Settings, which also lists the AI apps connected to your organization under Connected apps.

Before you start

You need the owner or admin role. Anyone else who opens the tab sees “You don’t have permission” instead of the key list.

Create a key

  1. In the sidebar, open Settings, then select the API Keys tab.
  2. Select Create API Key.
  3. Enter a Name. The key list does not show who created a key, so give it a name that says who or what uses it.
  4. Under Module permissions, choose what the key may do, or select Full access (includes future features). See Module permissions and Full access.
  5. Under Board access, choose which boards it can reach. See Board access.
  6. Select Create Key.
  7. The API Key Created dialog shows the key. Select Copy, store the key somewhere safe, then select Done.

Module permissions

The matrix has one row per module, showing how many of its features the key can use. Expand a module to set permissions feature by feature, and expand a feature to set them record by record. The checkboxes on the module’s own row set the same action on every feature in it that offers that action. The search box narrows the features shown inside an expanded module.

ActionLets the key
ReadRead records
WriteCreate and update records
DeleteDelete records
ExecuteRun a record’s workflow actions, such as posting or approving. Only some modules offer it

Nothing is granted by default: a key saved with no boxes ticked, and without full access, has no access to your organization’s data.

A greyed-out, locked box marks an action that no API key can hold on that feature, whatever else the key is given. Point at it to see why, for example API keys can only read this. A module’s own row skips those features and says how many it skipped, for example Write (10 read-only) on Finance. See Actions no key can hold.

Full access

Full access (includes future features), at the top of Module permissions, gives the key every feature in every module, including features Horizon adds later. While it is on, every box shows ticked for each action a key can hold there, and you cannot change individual boxes. The key list shows the key’s permissions as Full access (includes future features).

Full access still has the limits every key has:

A key has either full access or the boxes you tick, never both.

Switching full access off:

  • Before you save, it puts back the boxes you had ticked when you switched it on.
  • On a key saved with full access, it starts from exactly what the key can do today, so saving straight away changes nothing the key can do now. It ticks the features, and a feature’s boxes cover the records in it, so a record’s own boxes can show unticked. Untick anything the key should not have, then select Save. From then on the key covers only what is ticked, so features Horizon adds later are not included.

Actions no key can hold

Some features limit what any API key can do there, whatever you tick and even with full access. A request for one of these actions is refused with 403 and a message saying no key can be granted it. On the key screen, the box for it is locked.

Read only. A key can read these, and cannot create, change or delete them:

ModuleFeatureRead only
FinanceAccounts ReceivableDunning Notices, Sales Order Lines, Statements
FinanceBankThe whole feature
FinanceCapitalThe whole feature
FinanceCash & BankingBank Feed Connections, Reconciled Matches
FinanceCheck RegisterThe whole feature. Its Check Document is closed to keys entirely
FinanceFinance MigrationThe whole feature
FinanceFoundation & Master DataAccount Groups, Audit Rows, Verticals
FinanceGeneral LedgerJournal Lines
FinanceHealthcareAccess Logs, Audit Chain Verifications, Patients, PHI Encryption Keys, PHI Field Registry Entries, PHI Retention Policies
FinanceLeasesLease Amortizations, Lease Liabilities, ROU Assets
FinanceNon-ProfitThe feature’s own row, and Net Asset Balances
FinancePartiesThe whole feature
FinanceReconciliationsThe whole feature
FinanceTime & ExpenseTime To Invoice Links
FinanceVendor Bank ChangesThe whole feature
IntelligenceReport CatalogThe whole feature
WorkspaceApproval ConfigurationApproval Document Types, Approval Steps
System & PlatformAudit Logs, Search, Wallet BalanceEach whole feature
System & PlatformDimension RegistryDimensions
System & PlatformParty RegistryExternal IDs

Under Non-Profit, only the feature’s own row and the records listed are read-only. The other records in that feature accept Write and Delete, and Execute where they have workflow actions.

Read and write, but not delete: Data Migration Pipeline (Workspace), and Multi-Entity Separation and Operator Chat (System & Platform).

Write only: Primary Legal Entity, Report Builder (conversational) and Report Mockup Ingestion (System & Platform).

To import finance records with a key, use the migration hub rather than Finance Migration: give the key Read and Write on Data Migration Pipeline under Workspace, and start with POST /api/v2/migration/areas/finance/programs.

Parts of Horizon a key cannot reach

Some parts of Horizon are for signed-in people only. No box and no full access opens them:

  • Settings, including the API Keys tab, so a key cannot create, list or manage keys, itself included. The only settings a key can reach are the two in Organization setup with a key.
  • Inviting people to your organization, renaming it, and leaving it.
  • Billing, apart from reading the wallet: buying credits, auto-refill and subscriptions.
  • The fiscal-year setup in Finance.
  • Connections, agents, apps, skills, onboarding, the dashboard and notifications.

A key can still list, add and remove organization members, through /api/v2/agent/users with the Org Members permission under System & Platform. It adds only people who already have a Horizon sign-in; it does not send invitations. See Organization members.

A request to a part of Horizon that is closed to keys is refused with 403 PERMISSION_DENIED and the message API keys cannot access this endpoint. Buying credits and changing auto-refill are refused as actions no key can hold instead, because they sit under Wallet Balance, which is read only.

Organization setup with a key

Four features under System & Platform let a key help set up an organization. Only a key that has been given them, or a key with full access, can use them: no other permission includes them.

FeatureRequestPermissionKey creator’s role
Primary Legal EntityPATCH /api/v2/org/primary-entityWriteOwner or admin
Wallet BalanceGET /api/v2/billing/walletReadAny
Multi-Entity SeparationGET and PATCH /api/v2/settings/multi-entity-modeRead, WriteOwner or admin
Operator ChatGET and PATCH /api/v2/settings/operatorRead, WriteOwner or admin
  • Primary Legal Entity sets your organization’s primary legal entity. Send { "legalEntityId": "<id>" }, the id of an active legal entity in your organization. It answers { "data": { "primaryLegalEntityId": "<id>" } }, 404 ENTITY_NOT_FOUND for an entity not in your organization, and 409 ENTITY_NOT_ACTIVE for one that is not active.
  • Wallet Balance returns your organization’s wallet, including its balance, which is a string, and its auto-refill and subscription settings. Buying credits and changing auto-refill stay closed to keys. See Wallets.
  • Multi-Entity Separation is the Multi-entity separation setting on the General tab of Settings. PATCH takes { "mode": "standard" }, where mode is off, standard, strict, or null for Inherit (platform default). GET returns multiEntityMode, the stored setting, and effectiveMode, the mode that applies now.
  • Operator Chat is the Operator Chat setting on the General tab of Settings. PATCH takes { "enabled": true } or { "enabled": false }. GET returns operatorEnabled.

Each change is recorded in your organization’s audit trail as made through the API. For the three owner-or-admin features, the key’s creator must still hold one of those roles when the request is made; otherwise the request is refused with 403 INSUFFICIENT_ROLE.

Board access

OptionWhat the key can reach
All boardsNo board restriction, including boards created later
Only selected boardsThe boards you tick. Boards created later are not added
Only boards this key’s owner has been added toThe boards its creator is a member of when each request is made. Add or remove that person on a board to grant or withdraw access. Public boards they have not joined are not included

The dialog recommends the third option for agent and bot keys.

A request for a board the key cannot reach is answered as if the board did not exist.

Use a key

Send the key as a bearer token to https://api.horizonplatform.ai/api/v2:

http
Authorization: Bearer hzn_your_key_here

A key acts as the person who created it. Anything that depends on a role checks that person’s current role, and in an organization that separates data by legal entity, the key sees and changes only what that person can. A key works only while that person is an active member of your organization:

  • If they are removed from the organization, or leave it, requests with the key get 401 KEY_OWNER_NOT_FOUND.
  • If they are deactivated, requests with the key get 403 MEMBER_DEACTIVATED.

Neither revokes the key. It stays active in the list, and it works again from its next request if the person is reactivated or rejoins the organization. To stop a key for good, revoke or delete it. When you deactivate someone, the confirmation lists their active keys; see Deactivating a User.

A key has no rate-limit setting of its own. All of your organization’s keys share its API tier (Free: 10 requests a minute and 100 a day), bought separately from your plan. Each key can also make 1,000 requests per 60 seconds to the App API’s /api/v2/agent/* routes and, counted separately, 100 per 60 seconds to the other routes it can reach (1,000 there too for a request the tier counts). A request over a limit is answered with 429. See Rate limits.

When a request is refused

ResponseWhyWhat to do
403 PERMISSION_DENIED, API key lacks W permission for crm.contactsThe key was not given that actionEdit the key and tick it
403 PERMISSION_DENIED, the same message followed by No API key can be granted W hereNo key can hold that action, and details.capped is trueFollow details.hint. See Actions no key can hold
403 PERMISSION_DENIED, API keys cannot access this endpointThe path is closed to keys, or does not exist. details.reason says which, and details.movedTo names the replacement for a retired pathUse details.movedTo where there is one. See Parts of Horizon a key cannot reach
404 NOT_FOUND, No API route matches GET /api/v2/...The key may use that path, but nothing answers thereUse details.movedTo or details.hint where there is one

For every response shape, see Which routes an API key can reach in the App API reference, which also lists the routes a key can call, what each permission and board-access option controls there, and every endpoint’s request and response.

The key list

Each key in the list shows:

  • Name — the name you gave it.
  • Key — the start of the key, so you can match it to the one you stored.
  • Permissions — Full access (includes future features); or each module the key holds permissions in, with a count; or No access.
  • Boards — All boards, Owner’s boards, or the number of selected boards.
  • Status — active or revoked.
  • Created — the date the key was created.
  • Last Used — the date the key last authenticated a request, or Never.
  • Expires — Never for any key created here, because the dashboard does not set an expiry.

An active key has Edit, Rotate, Revoke and Delete. A revoked key has only Delete.

The keys of AI apps connected through the MCP connector are not in this list. They are under Connected apps.

Edit a key

Select Edit to change the key’s Name, Module permissions, including Full access, or Board access, then select Save. The key itself does not change, and the new permissions apply from its next request.

If the key holds a permission Horizon has since retired, the dialog lists it as removed; saving drops it.

Rotate a key

Select Rotate to replace the key with a new one. The new key appears once, in the same API Key Created dialog as at creation. The name, permissions and board access stay as they were.

Caution

Rotation happens as soon as you select Rotate — there is no confirmation — and the old key stops working at that moment. There is no overlap period, so anything still using the old key is refused until you give it the new one.

Revoke a key

Select Revoke to stop a key working. It takes effect immediately and does not ask you to confirm.

A revoked key stays in the list with the status revoked. It cannot be edited, rotated or turned back on; create a new key if you need one.

Delete a key

Select Delete, then Delete again in the Delete API key dialog. The key is removed from the list permanently. You can delete an active key or a revoked one; deleting an active key also stops it working.

Connected apps

Connected apps, at the top of the API Keys tab, lists every AI app a member connected to your organization through Horizon’s MCP connector, and holds the switch that turns the connector off. A connected app’s key is managed by its sign-in, so you do not create, edit or rotate it.

ColumnShows
AppThe app that connected
Connected byThe member the connection acts as
ConnectedThe date the member connected it
Last usedThe date it last made a request, or Never
StatusConnected or Revoked
  • Revoke, on a connected app, stops it working for that member at once. Signing in again does not reconnect it: it stays refused until you remove it.
  • Remove, on a revoked app, deletes the revoked connection. That member can then connect the app again by signing in.

Each asks you to confirm.

Allow AI apps to connect

The switch Allow AI apps to connect to this organization is on unless an owner or admin turns it off.

  • Off stops every connected app at once and refuses new connections. Each app is told that an admin has turned off the Horizon connector for this organization.
  • On again lets them work, without anyone reconnecting.

Your API tier

The requests your organization’s keys and connected apps make count toward one API tier: a limit on requests a minute and requests a day, shared by the whole organization. Without a tier, the Free limits apply.

TierRequests a minuteRequests a dayPrice
Free10100$0
API 1K1001,000$75 a month
API 3K2003,000$150 a month
API 10K50010,000$450 a month

Above API 10K, email [email protected] for a custom quote. What counts toward the tier, and what a refused request looks like, is in Rate limits.

See your usage

Below the key list, the API usage card shows:

  • your tier and its limits, or Custom limits for limits set by Horizon;
  • how many requests your organization has made today, and when the day resets;
  • a link to upgrade to the next tier at its price. Without a tier, it opens a checkout for that tier; on a tier, it opens Plan and Tokens to confirm the switch. At API 10K and on custom limits, the card gives [email protected] for a quote instead;
  • Change or cancel your tier on Plan and Tokens, which opens the page described in Buy, switch or cancel a tier.

Beside it, Organization time zone sets when the day starts: midnight in that zone, or in UTC when none is set. A change takes effect from the next midnight in the new zone.

Owners and admins are emailed when the organization reaches 80% of its daily requests, and again at 100%, each at most once a day. To stop the 80% email for yourself, clear Email me when the organization reaches 80% of its daily API requests on the card. The 100% email is always sent to owners and admins.

Buy, switch or cancel a tier

Owners, admins and billing admins manage the tier on the API access card of System > Plan and Tokens. The card lists API 1K, API 3K and API 10K, each with its price and limits. A tier is billed monthly on a subscription of its own, separate from your Launch, Navigate or Summit plan.

  1. Open System > Plan and Tokens.
  2. On the API access card, select Subscribe to API 1K, Subscribe to API 3K or Subscribe to API 10K. Horizon opens a Stripe checkout.
  3. Complete the payment. The tier’s limits apply once the payment goes through.
  • Switch tiers. On a tier, select Switch to on another tier’s row, for example Switch to API 3K, then Switch now. The new tier takes effect at once, and the rest of the billing period is prorated: a move up is invoiced now, and a move down is credited to your next invoice. If the invoice is left open, Pay invoice opens it.
  • Cancel. Under Subscriptions, select Cancel at period end on the tier’s row, then Confirm cancellation. The tier and its limits stay until the end of the billing period, then the Free limits apply. Nothing is refunded. Switching to another tier before then keeps the subscription going on the new tier.
  • A checkout in progress. While a checkout for a tier is open, the card offers no other tier. Finish it, or cancel it under Orders.
  • Custom limits. An organization on custom limits set by Horizon sees them on the card and is not offered a tier.

Tiers are bought in a web browser. The Horizon iOS app does not offer them.