Skip to main content
The Kosli API is a REST API that the Kosli CLI, the web app, and the Terraform provider all build on. The endpoint pages in this section are generated from the API’s OpenAPI specification.

Base URLs

Use the base URL of the instance your organization lives on. It’s the address you sign in to Kosli at, followed by /api/v2:

Authentication

Send a Kosli API key as a bearer token in the Authorization header:
Use a service account API key for automation, or a personal API key for trying things out. For HTTP basic auth and other options, see API authentication methods.

Interactive Swagger docs

Each instance also serves interactive Swagger docs, generated from the same specification: To send requests from Swagger, select Authorize and paste your API key. Requests run against the instance you opened the Swagger docs on, so use the one your organization lives on.
Last modified on November 6, 2026