> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Management API

> [!NOTE]
>
> Building a managed platform? Contact [contact@bijection.com](mailto:contact@bijection.com) with any questions.

You can provision and manage Bijection projects and deployments with the Management
API, served by Bijection's management service at `https://brain.bijection.com`.

A typed client for the Management API is available in the
[`@bijectionhq/management` package](https://www.npmjs.com/package/@bijectionhq/management).

## Branch review

Review and land branches through your app’s exposed functions. The
functions call the kernel’s branch acts with the caller’s grants and
guards. See the [branch workflow](https://docs.bijection.com/branches/workflow.md).

A branch's decision impact is the app's own query, not the review's:
`kept.review(decide, { allow })` of `@bijectionhq/library-decisions`, placed in
the app tree. `decisionImpact(client, review, branch, { cursor })` of
`@bijectionhq/library-decisions/client` calls it through any client its
`allow` admits and answers one page. The branch comparison requires the
original Program and table generations through the reviewed identity
migration. Pass a page's `next` as `cursor` for the next page.

## Authorization

The Management API uses a Bearer token Authorization header.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const token = "bb_…";
const response = await fetch("https://brain.bijection.com/v1/teams/41/projects", {
  headers: {
    Authorization: `Bearer ${token}`,
  },
});
console.log(await response.json());
```

[Team Access Tokens](https://docs.bijection.com/development/platform-automation#managing-your-own-projects) and
[OAuth Application Tokens](https://docs.bijection.com/development/platform-automation/oauth.md) can be used in
Bearer tokens depending on whether you are using the Management API on behalf of
your own team or on behalf of the team of a user of a Bijection integration you've
built. A team access token acts with the current roles of the member who
created it; an application token acts with the current role of the member who
authorized it. Every request is checked
against the token's current authority: another team's resources answer `404`,
exactly as ones that do not exist.

## Required Parameters

Most Management APIs require a team ID or project ID.

When creating a Team Access Token the team ID will be available in the Bijection
console.

OAuth applications may request the team (or project, if using project-scoped
tokens) ID by calling the Token Details endpoint (`GET /v1/token_details`).

When using a team token, projects will be assigned IDs upon creation. The
List Projects endpoint may also be used to
retrieve the ID for a project.

## Responses

All API responses are in JSON format. An error from the project, deployment
and team routes has a `code` and a `message`; the management service's own
operations answer problem details with a `detail` and an `errorCode`. A
capability unavailable for the selected deployment or installation answers
`FeatureUnavailable`. Inspect the deployment capability response before requesting
runtime changes. Project and deployment transfers, supported deployment controls
and action-restricted credentials have explicit authority checks.

## Stability during the design phase

Bijection-native management operations are in the design phase. Their request,
response and stored-resource contracts may change directly, including within
the `/v1` protocol family. There is currently no stable-API deprecation window
or twelve-month removal commitment. Use generated SDKs from the same release
as your management installation and review its operation contracts when
upgrading. This policy concerns Bijection-native operations; inherited project,
deployment and team routes retain their existing contracts.

An operation's published contract states its availability and requirements.
There is no general `preview=true` switch that enables undocumented operations.
The service's OpenAPI document covers the native operations listed below.

## Request limits and retries

The current management service admits requests through token buckets. Each
request consumes its client-address allowance and, when it presents a bearer
credential, that credential's allowance. A method other than `GET`, `HEAD` or
`OPTIONS` also consumes the credential's write allowance.

| Allowance | Sustained requests per minute | Immediate burst |
| - | -: | -: |
| Client address (IPv4 address or IPv6 /64) | 3,600 | 250 |
| Bearer credential, all methods | 1,800 | 240 |
| Bearer credential, state-changing methods | 600 | 120 |

These are admission controls **per management-service process**, not a global
per-user quota or a throughput guarantee. Each process admits at most 256
requests concurrently. Sign-in, device authorization, session refresh and some
resource-specific operations have additional limits. Requests behind one NAT
share the address allowance; creating another credential does not bypass it.

A rate refusal returns `429` with `RateLimited`; the process concurrency
ceiling returns `503` with `Overloaded`. Both include `Retry-After`,
`retryAfterSeconds` and a `limit` name. Wait at least the indicated interval,
use bounded retries with jitter and reduce concurrent work. Keep the original
`Idempotency-Key` and exact request body when retrying an operation that supports
that header. For an accepted asynchronous request, observe its retained request
identity rather than submit the same work under a new key. A connection failure
after submission does not establish whether a mutation was accepted.

## Endpoints

An OpenAPI document for the management service's native operations (releases,
clones, credentials and usage) is available at
[https://brain.bijection.com/openapi.json](https://brain.bijection.com/openapi.json). The project, deployment and team
routes under `/v1` that this page uses are not part of it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.