API guides
OpenAPI and Postman
Download a machine-readable description of the API and generate clients from it.
๐ OpenAPI document
The whole REST API is available as an OpenAPI 3.1 document, generated from the same description as this reference:
Use it to:
- explore the API in Swagger UI, Redoc, Scalar, Insomnia, Bruno or any OpenAPI viewer;
- generate a client for your language;
- mock the API in tests, or validate your requests.
Generating a client
With OpenAPI Generator:
npx @openapitools/openapi-generator-cli generate \
-i https://orch.digital/docs/api/openapi.json \
-g typescript-fetch \
-o ./orchestrator-client
Replace typescript-fetch with php, python, go or any other generator. Then point the client at your panel and give it a token:
import { Configuration, DeploymentsApi } from './orchestrator-client';
const api = new DeploymentsApi(new Configuration({
basePath: 'https://panel.example.com',
accessToken: process.env.ORCH_TOKEN,
}));
What the document contains
- Servers:
https://{panel}โ setpanelto your panel's host name. - Security:
bearerAuth(personal access tokens) on every operation; operations that only accept the browser session usesessionAuth; public operations have no security requirement. - Tags: one per reference group.
- Operations: summary, description, parameters with their limits, request body with an example, the success response with an example, and every error the endpoint returns.
- Extensions:
x-roles(who may call it),x-site-access,x-personal-access-tokensandx-auth.
Response bodies are described by examples rather than full JSON schemas. WebSocket endpoints are listed for completeness, and the loopback-only internal endpoint is left out.
๐ฎ Postman
- Download the collection and import it in Postman (Import โ File).
- Open the collection's Variables and set:
| Variable | Value |
|---|---|
baseUrl |
your panel, e.g. https://panel.example.com |
token |
a personal access token, orch_โฆ |
- Every request inherits the bearer token from the collection. Public requests (status pages, the client portal, health) are set to No Auth.
Requests are grouped in the same folders as the reference. Optional query parameters are included but disabled โ tick the ones you need.
Tip. Create a separate token for Postman with an expiry, on an account with only the access you need for testing.