No results for

Powered byAlgolia

Cloud REST API

Welcome to the k6 Cloud REST API docs!

The things you can do with the Cloud API include:

  • View data about organizations
  • Start tests
  • Retrieve data about tests and test runs

APIs

APIs
OrganizationsList, Read, and List projects
Load testsList, Read, Update and Delete a Load Test
Load test runsStart, Stop, List and Read a Load Test Run
Test run metricsList, Read, and Export metric test data
Error referenceError message format

Authentication

Authentication is based on a custom token scheme.

The Auth Token lets you to interact with the k6 Cloud through the k6 CLI and REST API. If you have adequate permissions, you can get the token in your account settings in the k6 Cloud app. The k6 Cloud Token docs describe the different access levels a token can have and the procedure to generate a token.

Requests to the cloud API MUST contain an authorization header with the value of your token. Using curl, a request looks like this:

curl -H "Authorization: token <YOUR_API_TOKEN_HERE>" #replace with your token

Authentication reference

PropertyValue
Security scheme typeHTTP
HTTP Authorization Schemebearer
Bearer format"JWT"