Skip to content

Approve and execute the action with the stored data (approvals.decide; never the requester nor the person who created the API key that requested it). If the action fails, the request ends up `failed` with its `failureCode` and the response is 200. Dashboard session only

POST
/v1/approvals/{approval}:approve
curl --request POST \
--url https://api.replifier.com/v1/approvals/apr_01hx0000000000000000000000:approve \
--header 'Content-Type: application/json' \
--data '{ "reason": "example" }'
approval
required
string
/^apr_[a-z0-9]{26}$/

Example

apr_01hx0000000000000000000000
Media typeapplication/json
object
reason
string
<= 500 characters /^[^\x00-\x1f\x7f]*$/

Example generated

{
"reason": "example"
}

Request after the action

Media typeapplication/json
object
id
required
string
brandId
required

Brand of the action; null if it applies to the whole organization.

string
nullable
action
required
string
Allowed values: security_policy_change credentials_change contacts_export bulk_delete
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
Allowed values: pending approved rejected cancelled executed failed expired
summary
required

What the approver sees (no secrets).

object
key
additional properties
nullable
requestedBy
required

Person (usr_…) or API key (key_…) that requested it.

string
requestedSource
required
string
Allowed values: panel api mcp
decidedBy
required
string
nullable
decidedAt
required
string
nullable
decisionReason
required
string
nullable
executedAt
required
string
nullable
failureCode
required

Error code of the action when it ended up failed.

string
nullable
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
nullable

Example

{
"action": "security_policy_change",
"status": "pending",
"requestedSource": "panel"
}

Invalid data

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"
}
}

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"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

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"
}
}

Conflict

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"
}
}