Skip to content
Dashboard

Overview

Starting a scan

A scan asks each of a brand’s prompts on each of its AI engines and spends scan credits.

Send an empty body to scan every active prompt, or list promptIds to scan only those.

Terminal window
curl -X POST "https://api.footnotehq.com/v1/brands/$BRAND_ID/scans" \
-H "Authorization: Bearer fn_your_key" \
-H "Content-Type: application/json" \
-d '{}'
{ "runId": "e57817a4-1483-4b88-8cc9-16c319af0404" }

This needs read and write access to Scans.

A brand runs one scan at a time. If one is already queued or running, the request returns that scan’s runId and starts nothing new, so retrying is safe.

If the account doesn’t have enough credits, the request gets a 402.

GET /v1/brands/{brandId}/scans/active returns the running scan with doneTasks and totalTasks:

{
"run": {
"id": "e57817a4-1483-4b88-8cc9-16c319af0404",
"status": "running",
"doneTasks": 4,
"totalTasks": 6
}
}

Once it has finished, the same request returns { "run": null }, and the scan appears in the scan history with a status of completed or failed.