> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rasen.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rasen.ai/_mcp/server.

# Enterprise API

> Learn what the Enterprise API adds, how an organisation key calls organisation and workspace operations, and how to get access from Rasen.

## 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](/enterprise/organisation-workspaces).

## Facts

**Access.** The Enterprise API is for Enterprise customers. To turn it on for your organisation,
contact Rasen at [`team@rasen.ai`](mailto:team@rasen.ai). Until Rasen turns it on, an organisation key gets
`403 organisation_api_not_enabled` on every operation.

| Item                    | Value                                                                                                                                  |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Access                  | Enterprise customers only. Contact Rasen at [`team@rasen.ai`](mailto:team@rasen.ai) to turn it on for your organisation                |
| Key                     | An organisation key. Its secret starts `ra_org_`. Only the Owner or an Admin of the organisation can create and manage one             |
| Header                  | `Authorization: Bearer <organisation key>` on every request                                                                            |
| Workspace header        | `Rasen-Workspace: <workspace_id>` on every workspace operation                                                                         |
| Organisation operations | 10 operations below `/organisations/{organisation_id}`. See [Organisation operations](#organisation-operations)                        |
| Workspace operations    | Every operation of the [API reference](/api-reference), with `Rasen-Workspace`                                                         |
| `getLimits`             | `GET /limits`. With `Rasen-Workspace`: the numbers of that workspace and of the key in it. Without it: the numbers of the organisation |
| Capabilities            | `organisation.read` for the 6 reads, `organisation.manage` for the 4 changes                                                           |
| Not turned on           | `403 organisation_api_not_enabled` on every operation                                                                                  |
| Reference               | [Enterprise API reference](/enterprise/api-reference)                                                                                  |

## Get an organisation key

1. Contact Rasen at [`team@rasen.ai`](mailto:team@rasen.ai) to turn on the Enterprise API for your
   organisation.
2. As the Owner or an Admin of the organisation, open **Organization settings** in the Rasen app,
   then **API keys**, and create a key.
3. Store the secret in a secret manager. The app shows it once.
4. Copy the organisation ID from **Organization settings**, **General settings**,
   **Organization ID**. The organisation operations take it as `organisation_id` in 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 key                   | Organisation key                                                        |
| ----------------------- | ------------------------------- | ----------------------------------------------------------------------- |
| Secret                  | Starts `ra_`                    | Starts `ra_org_`                                                        |
| Who can have one        | Every workspace                 | An organisation that Rasen turned the Enterprise API on for             |
| Who manages the keys    | Any member of the workspace     | Only the Owner or an Admin of the organisation                          |
| Acts in                 | Its own workspace               | A workspace that `Rasen-Workspace` names, from the key's workspace list |
| `Rasen-Workspace`       | Ignored                         | Required on a workspace operation                                       |
| Organisation operations | `403 forbidden`                 | Allowed when the key has organisation operations on                     |
| Documented in           | [API reference](/api-reference) | [Enterprise API reference](/enterprise/api-reference)                   |

## Workspace operations

An organisation key calls every workspace operation of the [API reference](/api-reference): agents,
tools, knowledge, calls, campaigns, webhooks and the rest. Each request names its workspace in the
`Rasen-Workspace` header:

```bash
curl -sS "$RASEN_API_BASE/agents" \
  -H "Authorization: Bearer $RASEN_API_KEY" \
  -H "Rasen-Workspace: $WORKSPACE_ID"
```

* A missing, empty or malformed `Rasen-Workspace` is `400 invalid_request` with
  `details.field` `Rasen-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](/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`.

| Operation                             | Path                                                                         | Capability            |
| ------------------------------------- | ---------------------------------------------------------------------------- | --------------------- |
| `getOrganisation`                     | `GET /organisations/{organisation_id}`                                       | `organisation.read`   |
| `listOrganisationWorkspaces`          | `GET /organisations/{organisation_id}/workspaces`                            | `organisation.read`   |
| `getOrganisationUsageSummary`         | `GET /organisations/{organisation_id}/usage/summary`                         | `organisation.read`   |
| `getOrganisationConcurrency`          | `GET /organisations/{organisation_id}/concurrency`                           | `organisation.read`   |
| `listOrganisationPeople`              | `GET /organisations/{organisation_id}/people`                                | `organisation.read`   |
| `listOrganisationPersonKeys`          | `GET /organisations/{organisation_id}/people/{person_id}/keys`               | `organisation.read`   |
| `createOrganisationWorkspace`         | `POST /organisations/{organisation_id}/workspaces`                           | `organisation.manage` |
| `archiveOrganisationWorkspace`        | `POST /organisations/{organisation_id}/workspaces/{workspace_id}/archive`    | `organisation.manage` |
| `restoreOrganisationWorkspace`        | `POST /organisations/{organisation_id}/workspaces/{workspace_id}/restore`    | `organisation.manage` |
| `setOrganisationWorkspaceConcurrency` | `PUT /organisations/{organisation_id}/workspaces/{workspace_id}/concurrency` | `organisation.manage` |

* `organisation.manage` needs a `full_access` organisation key with organisation operations on.
* A workspace key gets `403 forbidden` on each of them.
* An `organisation_id` that is not the key's organisation is `404 not_found`.
* No answer has a billing field or a cost.

## Related

* [Manage the workspaces of an organisation](/enterprise/organisation-workspaces)
* [Enterprise API reference](/enterprise/api-reference)
* [Authentication](/get-started/authentication)
* [Rate limits](/concepts/rate-limits)