Approvals inbox: the ones you requested and the ones you can decide, most recent first (cursor-paginated). Dashboard session only
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/approvals?status=pending&action=security_policy_change';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/approvals?status=pending&action=security_policy_change'With status=pending, only those still waiting (expired ones no longer count). status=expired lists those that expired without a decision. Whoever has the approvals.decide permission across the whole organization (owner or admin) sees all of them; a brand approver sees those of their brands.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
org_01hx0000000000000000000000Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Requests
object
object
Brand of the action; null if it applies to the whole organization.
executed: approved and the action took place; failed: approved but the action failed (see failureCode); expired: 72 h passed without a decision.
What the approver sees (no secrets).
object
Person (usr_…) or API key (key_…) that requested it.
Error code of the action when it ended up failed.
People who can decide it (excluding the requester). 0: the dashboard suggests inviting someone. Null if it is no longer pending and in listings (computed when it is requested and when it is fetched).
Example
{ "data": [ { "action": "security_policy_change", "status": "pending", "requestedSource": "panel" } ]}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}