Enterprise API
Summary
The Enterprise API lets one organisation key work across the workspaces of an organisation: the organisation operations, and every workspace operation of the API reference. This page covers the key, the header that selects a workspace, and how to get access. It does not cover the steps; see Manage the workspaces of an organisation.
Facts
Access. The Enterprise API is for Enterprise customers. To turn it on for your organisation,
contact Rasen at team@rasen.ai. Until Rasen turns it on, an organisation key gets
403 organisation_api_not_enabled on every operation.
Get an organisation key
- Contact Rasen at
team@rasen.aito turn on the Enterprise API for your organisation. - As the Owner or an Admin of the organisation, open Organization settings in the Rasen app, then API keys, and create a key.
- Store the secret in a secret manager. The app shows it once.
- Copy the organisation ID from Organization settings, General settings,
Organization ID. The organisation operations take it as
organisation_idin the path.
No API operation makes, changes, rotates or revokes an organisation key. The key belongs to the organisation: it keeps working when the person who made it leaves.
Two key families
Workspace operations
An organisation key calls every workspace operation of the API reference: agents,
tools, knowledge, calls, campaigns, webhooks and the rest. Each request names its workspace in the
Rasen-Workspace header:
- A missing, empty or malformed
Rasen-Workspaceis400 invalid_requestwithdetails.fieldRasen-Workspace. There is no default workspace. - A workspace outside the organisation, or outside the key’s workspace list, is
404 not_found. Both cases get the same answer. - The body, the answer and the error codes of each operation are the same as for a workspace key.
The Enterprise API reference shows each workspace operation with
Rasen-Workspace.
Organisation operations
The organisation operations read and manage the organisation. They need a key with organisation
operations on. They cover every workspace of the organisation, also workspaces that are not in the
key’s workspace list, and they ignore Rasen-Workspace.
organisation.manageneeds afull_accessorganisation key with organisation operations on.- A workspace key gets
403 forbiddenon each of them. - An
organisation_idthat is not the key’s organisation is404 not_found. - No answer has a billing field or a cost.