Reference · Guide
Using the OpenAPI file
Import the API description into a client or a code generator, and what to add by hand.
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.
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_TOKENas 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.
npx @openapitools/openapi-generator-cli generate -i https://api.colossium.cloud/v1/openapi.json -g typescript-fetch -o ./colossium-apiWhat a generated client does not do for you
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.
- 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.
This page as MarkdownReport a problem with this pageOlympus Group Holdings, Inc.