Scans

Run an API doc scan

Scan a saved OpenAPI or Swagger API doc for exposed servers, weak authentication, leaked credentials, unprotected writes and text that could mislead an AI agent, and read the score and report.

API Doc Scan reads one saved OpenAPI or Swagger document and gives it a score. It looks at the document only. It never calls the API the document describes, and it doesn't use an AI model. Save the API doc first, on the Assets page. See Add an asset.

Start a scan

  1. Select Assets in the sidebar.
  2. On the row of an API doc whose format is OpenAPI or Swagger, select Scan.

Guardian opens the report page and shows its progress. It updates by itself until the scan finishes. Other formats, such as AsyncAPI, Postman, RAML and docs pages, have no Scan button.

Admins, Managers, Engineers and Security members can scan. Other roles can open reports but not start scans.

Guardian reads the document from its saved address: only a plain document address on port 80 or 443, with no query. It obeys the site's robots.txt, makes at most a few requests, and reads up to 1 MiB. It never fetches an address found inside the document. Guardian doesn't scan a document whose owner has opted out of Guardian testing.

Read the report

  • Score and grade. The score is out of 100. The grade is Production ready, Good, Needs work or Not ready.
  • Document. The format, version, number of operations and number of servers Guardian found.
  • Categories. Each category shows its points: Exposure, Authentication, Secrets, Write surface and Agent safety. Agent usability is advice only and isn't scored.
  • Findings. The problems and advice found, with how to fix each one and how many points it would add. A short piece of evidence from the document, with secrets masked, is shown where it helps.
  • All checks. Every check and its result, including checks that didn't apply, such as authentication checks on a document with no operations.

Text in a report comes from the document. Guardian shows it as plain text and never as a link.

The last scan on the Assets page

The API doc's row shows its latest scan under its address: the score and grade, or Scanning… while it runs. Select it to open the report. Scan history isn't kept in the interface; each scan has its own report.

If a scan fails

The report page says why. Common reasons are that the document couldn't be reached, the site's robots.txt doesn't allow it, the address redirected somewhere Guardian doesn't follow, the document is larger than 1 MiB, or it isn't OpenAPI 3.x or Swagger 2.0. Fix the cause, or edit the API doc's address on the Assets page, and scan again.

If Guardian says you've reached a limit, wait a little and try again. Scans are limited per organization each day and per site each hour.