Skip to main content
GET
List (and page) policy approval history for a project

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

Query Parameters

policy_id
integer<int64>
status
enum<string>

Return only approvals in this user-visible status. The four statuses a client renders, as a filter value. Unlike PolicyApprovalState (the raw lifecycle column) this includes revoked, which is derived — an approved row whose revoked_at is set — and therefore approved here means approved-and-not-revoked.

Available options:
pending,
approved,
rejected,
revoked
limit
integer
default:50

Page size. Omit for the default of 50; 100 is the hard maximum. 0 returns no rows and only the total — the cheap count.

Required range: 0 <= x <= 100
offset
integer
default:0
Required range: x >= 0

Response

One page of approval history, including pending, rejected, expired, and revoked rows

approvals
object[]
required
total
integer
required

Approvals matching the filters, independent of limit/offset.

Required range: x >= 0
limit
integer
required

Page size actually applied — the request's limit, or the default of 50 when it omitted one.

Required range: x >= 0
offset
integer
required
Required range: x >= 0