Lets send a GET request to retrieve all audits conducted in your organisation.
curl --header "Authorization: JWT XXXXXX123" https://api.auditcomply.com/audits
An example response for the previous curl command will be something similar to below (several fields have been hidden):
{
"count": 54,
"next": "https://api.auditcomply.com/audits/?page=2",
"previous": null,
"results": [
{
"name": "Audit Comply Example Assessment - [v1]",
"id": 1,
"status": "NA",
...,
"observations": [
{
"question_id": 1,
"question_text": "Do you conduct paper based audits?",
"requirement_identifier": "1.1",
"nonconformances": [
{
"nonconformance_id": 1,
"status": "OPEN",
...
}
],
"custom_responses": [],
"observation": "",
"responses": [
"NA"
]
},
...
]
},
...
]
}