> For the complete documentation index, see [llms.txt](https://docs-integration.squake.earth/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-integration.squake.earth/audits/specific-audit-log.md).

# Retrieve a specific Audit log

The **Audit Log Details API** lets you fetch **full details** for a single audit log created by an audited calculation request.

## Endpoint

### `GET /v2/audits/{id}`

Retrieve detailed information for a specific audit log.

### Authentication

* **Bearer Token** required.
* Audit logging must be **enabled** for your account.

## Path Parameters

| Name | Type            | Required | Description                                     |
| ---- | --------------- | -------- | ----------------------------------------------- |
| `id` | `string` (UUID) | ✅        | Unique identifier of the audit log to retrieve. |

## Response

### 200 OK — Example

```json
{
  "id": "0194d6b4-8711-7873-899d-c8133cd742f8",
  "calculated_at": "2025-02-18T16:39:10Z",
  "request": {
    "type": "flight",
    "methodology": "ICAO",
    "origin": "SAF",
    "destination": "ATL"
  },
  "response": {
    "carbon_quantity": 302.75,
    "carbon_unit": "kilogram"
  },
  "calculation": {
    "distance": { "...": "..." },
    "emission_factors": { "...": "..." }
  },
  "methodology": {
    "name": "ICAO",
    "version": "1.0",
    "source": "https://applications.icao.int/icec/Methodology%20ICAO%20Carbon%20Emissions%20Calculator_v13_Final.pdf"
  },
  "audit_for": "d3427e0d-5a3c-40ce-842e-5552e77caa4f"
}
```

### Field Reference

* `id` *(UUID)* — Unique audit log ID.
* `calculated_at` *(ISO 8601)* — When the calculation was performed.
* `request` — Exact request item used for the audited calculation (structure varies by activity).
* `response` — Calculation result (e.g., `carbon_quantity`, `carbon_unit`).
* `calculation` — Additional details such as distance resolution and emission factors (*feature-gated; contact support to enable*).
* `methodology` — Methodology name, version, and official source link used for the calculation.
* `audit_for` — ID of an **Auditable entity** the audit log is associated with (set via `audit_for` on the calculation request).

## Errors

| Status  | Meaning                             |
| ------- | ----------------------------------- |
| **200** | Success                             |
| **403** | Authentication/authorization failed |
| **404** | Audit log not found                 |

## cURL

```bash
curl --request GET "https://api.squake.earth/v2/audits/{id}" \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-integration.squake.earth/audits/specific-audit-log.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
