List policies.
Changed onReturns a list of policies.
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v2/policies
- Auth: one of:
- HTTP bearer
- HTTP bearer
Query parameters
Specifies the maximum number of records to return.
Specifies the offset for the first records to return.
Specifies the order in which to sort the results.
Filter by scope.
Filter by enabled status.
Filter by account ID (for account-scoped policies).
Only include policies that have at least one rule with an operation in this list.
Exclude policies where all rules have operations in this list.
Response
Successful response.
Example response
{
"data": [
{
"description": "Limit ETH transfers to 1 ETH to approved addresses",
"accountId": "acc_48eeba57-2cd5-4159-a2cb-057a23a35e65",
"enabled": true,
"rules": [
{
"operation": "signEvmTransaction"
}
]
}
]
}Changes
- info
the security scope
policies:readwas added to the endpoint's security schemesk - info
added the new optional
queryrequest parameteroperation - info
added the new optional
queryrequest parameteroperationNotIn
- info
- breaking
removed the enum value
accountfrom thequeryrequest parameterscope - breaking
removed the enum value
projectfrom thequeryrequest parameterscope - warning
added the new
transactionenum value to the//response property for the response status - info
for the
queryrequest parameterscope, the type was generalized fromstringtoarray
- breaking