An approval request with its status. Dashboard session only
GET
/v1/approvals/{approval}
const url = 'https://api.replifier.com/v1/approvals/apr_01hx0000000000000000000000';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/approvals/apr_01hx0000000000000000000000Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”approval
required
string
Example
apr_01hx0000000000000000000000Responses
Section titled “Responses”Request
Media typeapplication/json
object
id
required
string
brandId
required
Brand of the action; null if it applies to the whole organization.
string
action
required
string
status
required
executed: approved and the action took place; failed: approved but the action failed (see failureCode); expired: 72 h passed without a decision.
string
summary
required
What the approver sees (no secrets).
object
key
additional properties
requestedBy
required
Person (usr_…) or API key (key_…) that requested it.
string
requestedSource
required
string
decidedBy
required
string
decidedAt
required
string
decisionReason
required
string
executedAt
required
string
failureCode
required
Error code of the action when it ended up failed.
string
expiresAt
required
string
createdAt
required
string
approversAvailable
required
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).
number
Example
{ "action": "security_policy_change", "status": "pending", "requestedSource": "panel"}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}