Grafana Cloud k6 REST API v6
The Grafana Cloud k6 REST API provides programmatic access to Grafana Cloud k6 resources.
Note
You can download an OpenAPI specification file for the v6 API here.
Authentication and authorization
To authenticate with the Grafana Cloud k6 HTTP API, you’ll need:
- A Personal API token or a Grafana Stack API token. Refer to Authenticate on the CLI to learn how to get a token.
- A Grafana stack instance ID. Refer to Your Grafana Cloud Stack to learn how to get your stack instance ID.
Include the API token in the Authorization
header and the instance ID in the X-Stack-Id
header for all requests to the API. For example:
GET https://api.k6.io/cloud/v6/projects
Authorization: Bearer 56c166885f9a7fc1e579a1b3cb66f6dd
X-Stack-Id: 12345
API reference
The root URL for the Grafana Cloud k6 REST API v6 is:
https://api.k6.io/cloud/v6
Refer to the following pages to learn more about the available endpoints: