Projects REST API
Warning
The use of this API is discouraged in favor of API v6 Projects.
Use these endpoints to access Projects data in Grafana Cloud k6.
To learn more about Projects, refer to the Projects documentation.
List projects
GET /projects
Example URL with optional parameters:
GET /projects?$top=10&$skip=20&$count=true&$select=id,name,created&$orderby=created desc&$filter=contains(name,'tests')
Parameters
All parameters are optional.
Example request:
GET https://api.k6.io/cloud/v5/projects?$count=true
Accept: application/json
Authorization: Token 56c166885f9a7fc1e588a1b3cb66f6dd
Example response
Get single project by Id
GET /projects/:id
Parameters
Example Request:
GET https://api.k6.io/cloud/v5/projects/5175?$select=id,name,description
Accept: application/json
Authorization: Token 56c166885f9a7fc1e588a1b3cb66f6dd
Example Response:
HTTP/1.1 200
Content-Type: application/json
{
"description": "Default project",
"id": 5175,
"name": "My first project",
}