Skip to main content
GET
List current findings violating an attached policy

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.

Path Parameters

projectId
string<uuid>
required
policyId
integer<int64>
required

Query Parameters

cursor
string

Opaque cursor from the previous page's next_cursor. Omit for the first page.

limit
integer
default:50

Page size. Defaults to 50; 100 is the hard maximum.

Required range: 1 <= x <= 100

Response

One page of current violations with stored matched-condition evidence

violations
object[]
required
total
integer
required

Violations in the current evaluation, independent of how many rows this page carries or how many pages have been read.

Required range: x >= 0
evaluation_id
string<uuid> | null

The immutable evaluation this page was cut from. Null when the policy has no current result for the project (an empty list).

next_cursor
string | null

Opaque keyset cursor for the following page, or null on the last page. It carries evaluation_id, so it stops being valid the moment a new evaluation replaces the current one.