K6 cloud documentation mentions about a rest api to access k6 cloud scripts. I need a way to start and get stats of a cloud test using an API. But documentation is not very clear about what is the right endpoint and authorization as well.
Hi @Sivaganesh
Welcome to the community forum
For cloud support, it’s best if you can open a ticket (send an e-mail to support@k6.io). In this way the support team can better track and hand-off the request if needed.
If you have any issues opening the ticket please let us know in this thread.
Cheers!
To access the k6 Cloud REST API:
Generate an API token from your k6 Cloud account settings.
Include the API token as an authorization header in your API requests: Authorization: Bearer <API_TOKEN>.
Use an HTTP client (e.g., cURL) to make requests.
Explore the API endpoints and their functionality in the k6 Cloud REST API documentation.
Regards,
Rachel Gomez
1 Like