# Using the OpenAPI file

> Import the API description into a client or a code generator, and what to add by hand.

Type: Guide. Updated 2 December 2026. Page: https://www.colossium.cloud/docs/openapi

## The file

The API is described in OpenAPI 3.1 at `https://api.colossium.cloud/v1/openapi.json`. It is public, needs no token and lists every endpoint, parameter, body, response and error. It is built from the same list as these docs, so the two always agree.

```bash
curl -s https://api.colossium.cloud/v1/openapi.json | jq '.paths | keys'
```

## Using it

- **Postman, Insomnia, Bruno:** import the file from its address. Set a collection variable `COLOSSIUM_API_TOKEN` as a **secret** variable, and use bearer authentication with it.
- **Code generation:** generate a client in your language. For example:
- **Validation:** check your recorded calls against the schemas in a contract test.

```bash
npx @openapitools/openapi-generator-cli generate -i https://api.colossium.cloud/v1/openapi.json -g typescript-fetch -o ./colossium-api
```

## What a generated client does not do for you

> **Read this before you rely on one.** A generated client is a thin layer over HTTP. It will not give you the behaviour that makes an integration safe. Add these yourself, or use the [reference client](/docs/client-typescript).

- **Retries with backoff and jitter**, obeying `Retry-After`, and only for requests that are safe to repeat.
- **Idempotency keys** on every request you POST to `/requests`.
- **Pagination** through `next_cursor`.
- **Keeping the token out of logs and errors.**
- **Polling** for a request to finish.

Treat the file as the description of the contract. The response schemas list the fields that exist today and responses can gain fields in `v1`, so ignore fields you do not know rather than failing on them.
