---
title: "Get audit by ID"
method: POST
path: "/audit/get_audit"
tags: ["Audit"]
---

# Get audit by ID

`POST /audit/get_audit`

## Request

- Base URL: `https://api.foudroyer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.foudroyer.com/audit/get_audit`
- Auth: HTTP bearer

Retrieves a single audit by ID. User must own the website associated with the audit.

## Request body

- AuditGetAuditInputDto
  - `audit_id` string, required: Unique identifier of the audit to fetch

## Response `200`

The audit details

- AuditEntity
  - `id` string, required: Unique identifier of the audit
  - `fk_website_id` string, required: Website ID the audit belongs to
  - `status` 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled', required: Audit status
  - `max_pages_limit` number, required: Maximum number of pages to crawl
  - `started_at` string, date-time, required: When the audit was started
  - `completed_at` object, nullable, required: When the audit was completed
  - `cancelled_at` object, nullable, required: When the audit was cancelled
  - `total_pages_found` number, required: Total pages found during crawl
  - `total_pages_crawled` number, required: Total pages crawled
  - `total_orphan_pages` number, required: Total orphan pages found
  - `max_depth_crawled` number, nullable, required: Maximum depth reached during crawl
  - `overall_score` number, nullable, required: Overall audit score
  - `http_code_distribution` object, nullable, required: HTTP status code distribution
  - `created_at` string, date-time, required: When the audit was created
  - `updated_at` string, date-time, required: When the audit was last updated

---

[API](https://skmtc.dev/foudroyer/apis/foudroyer-api.md) - [All operations](https://skmtc.dev/foudroyer/apis/foudroyer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/foudroyer/apis/foudroyer-api/revisions/5b917c67e013?raw)
