Skip to main content
GET
List Self-checks

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 ids to filter by.

status
enum<string>

A Self-check's lifecycle, collapsed from the underlying run's status. running covers every non-terminal state: the caller polls, or the creation call returned past its synchronous budget.

There is no cancelled here: a cancelled run reports failed. The receiving-idle sweep cancels a Self-check whose client stopped uploading, and running would never resolve.

Available options:
running,
completed,
failed
q
string

Free-text substring search, case-insensitive, across violation and not_evaluated policy names, detection paths, detection summaries, and (in addition, not exclusively) the run's name. Empty or absent applies no filter.

Maximum string length: 128
gate
string

Comma-separated SelfCheckGate values to filter by. A running run's null gate never matches an explicit value here.

producer
string

Comma-separated producers to filter by. Only pre_commit and mcp are Self-check producers; any other value is rejected with invalid_producer.

sort
enum<string>
default:created_at
Available options:
created_at,
finished_at,
expires_at,
status,
gate,
producer
dir
enum<string>
default:desc
Available options:
asc,
desc
limit
integer
default:50
Required range: 1 <= x <= 200
offset
integer
default:0
Required range: x >= 0

Response

Paginated list. Ordered by sort/dir, defaulting to created_at DESC when both are omitted (unchanged from before this change).

items
object[]
required
total
integer
required

Total matching the filters (before limit/offset).