> ## 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.

# Deployment Platform API

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

Unlike HTTP endpoints which expose application-specific functionality to
clients, management API endpoints configure deployments (e.g. modifying
environment variables).

## Authorization

The Deployment Management API requires an `Authorization` header with an
admin key for the selected installation. Use a
[deploy key](https://docs.bijection.com/operate/installations/credentials.md#from-the-cli) or the short-lived
key returned by the installation credential delivery workflow.

For a hosted installation, the console and CLI request a credential from the
assigned cell through Control. The request binds the installation, its current
placement and a client-generated recipient key. The cell encrypts the answer to
that recipient. The requesting client opens it to obtain the installation URL,
admin key, read-only flag and expiration. The installation checks the issued
grant against its own current authority when it receives the key.

Send the admin key with the `Bijection` authorization scheme:

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const response = await fetch(`${url}/api/v1/list_environment_variables`, {
  headers: {
    Authorization: `Bijection ${adminKey}`,
  },
});
console.log(await response.json());
```

The [`bijection` CLI](https://docs.bijection.com/development/cli) sends the selected installation's key
when it calls the Deployment Management API.

## Generated HTTP clients

The repository contains Go clients under `sdks/application`
and `sdks/deployment`. Application operations include functions and native
snapshot reads. Deployment operations include supported operator reads.
See [Proposals](https://docs.bijection.com/branches) for selecting a data world in an application call.

Use the management clients under `sdks/management` for organizations, projects,
credentials and deployment lifecycle requests. The application HTTP clients do
not implement the separate reactive WebSocket protocol. A function failure is a
`status: "error"` result at HTTP 200; transport and authorization failures use HTTP
error statuses. Values can contain arbitrary JSON, including explicit null.


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