Retrieve the list of Audit logs
Audit logs are created when enabled on calculation requests. Using this endpoint you can retrieve the list of audit logs for the authenticated client.
Note: to use this feature you need to have it enabled for your account, please contact us for more information.
GET
/v2/audits
curl \
--request GET https://api.squake.earth/v2/audits \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
{
"id": "0194d6b4-8711-7873-899d-c8133cd742f8",
"request": {
"type": "flight",
"origin": "SAF",
"destination": "ATL",
"methodology": "ICAO"
},
"response": {
"carbon_unit": "kilogram",
"carbon_quantity": 302.75
},
"methodlogy": {
"name": "ICAO",
"source": "https://applications.icao.int/icec/Methodology%20ICAO%20Carbon%20Emissions%20Calculator_v13_Final.pdf",
"version": "1.0"
},
"calculation": {
"distance": {
"original": {
"distance": 3437.83,
"distance_unit": "kilometer"
},
"corrected": {
"distance": 3438,
"distance_unit": "kilometer"
}
},
"emission_factors": {
"flight_type": "long_haul",
"co2_per_passenger": 0.5
}
},
"calculated_at": "2025-02-18T16:39:10Z"
}
]