Skip to main content
GET
List scans

Authorizations

Authorization
string
header
required

An Earnie API key, sent as Authorization: Bearer sk_earnie_.... Create one under Settings > API keys. The key's scopes decide which operations it may call.

Query Parameters

projects
string

Comma-separated project UUIDs to filter scans by.

status
enum<string>

Lifecycle states:

  • pending — the scan exists; receiving its input has not started or finished
  • receiving — the scan's input is being transferred (files, a repository, or an archive)
  • extracting — an uploaded archive is being unpacked
  • scanning — the scanners are running
  • importing — an uploaded SBOM document is being read; SBOM imports skip receiving and scanning
  • completed — the scan finished and its results are available
  • failed — terminal failure; error_code and error_message are set
  • cancelled — terminal cancellation; no findings, gate result, or posture is published
Available options:
pending,
receiving,
extracting,
scanning,
importing,
completed,
failed,
cancelled

Case-insensitive literal substring of scan name or archive filename. Also matches project name or slug among explicitly selected projects.

Maximum string length: 200
activity_status
enum<string>

Display bucket; running includes every nonterminal status, including pending. Combined with status when both are supplied.

Available options:
succeeded,
running,
failed,
queued
limit
integer
default:50
Required range: 1 <= x <= 200
offset
integer
default:0
Required range: x >= 0

Response

Paginated list ordered by created_at DESC, id DESC.

items
object[]
required
total
integer
required

Total matching the filters (before limit/offset).