# Projects

Projects is at the heart of AccidentalQuality and you will need to query projects first, to get to any of the other data. After getting a project id, unless you query dashboard data, you will need to query integrations also.

You can do it like so:

curl -H "X-API-Key: <your token goes here>" \
https://api.accidentalquality.com/api/projects
fetch('https://api.accidentalquality.com/api/projects', {
  method: "GET",
  headers: {"Content-type": "application/json;charset=UTF-8", "X-API-Key": "<your-token-goes-here>"}
})
.then(response => response.json()) 
.then(json => console.log(json)) 
.catch(err => console.log(err));

The data returned is in json format and structured as follows:

  • (array)
    • id integer - The id of the project. You will need this to query other data.
    • name string - The name of the project.

Example:

        [
            {
                "id": "1", 
                "name": "Hardware - the part of software you can kick"
            },
            {
                "id": "2", 
                "name": "The legacy project that the PM estimated fixes would take 1 sprint"
            },
            ...
        ]
    }