curl --request GET \
--url https://api.ledger.so/v1/policies \
--header 'Api-Key: <api-key>'{
"object": "list",
"data": [
{
"object": "policy",
"id": "<string>",
"name": "<string>",
"createdAt": 123,
"updatedAt": 123,
"description": "<string>",
"timeRestrictions": {
"ttlMinutes": 123,
"onExpiry": "freeze",
"activeHoursStart": 11,
"activeHoursEnd": 11,
"activeTimezone": "<string>",
"activeDays": [
3
]
},
"spendingRestrictions": {
"maxAmount": 123,
"cumulativeMax": 123,
"maxAuthCount": 123,
"cooldownMinutes": 123,
"limitPerAuth": 123,
"limitPerDay": 123,
"limitPerMonth": 123
},
"merchantRestrictions": {
"allowedMccs": [
"<string>"
],
"blockedMccs": [
"<string>"
],
"merchantHint": "<string>",
"onDrift": "freeze"
},
"attestation": {
"requireAttestation": true,
"intentTolerance": 0.5,
"credentialExposure": "never"
}
}
],
"hasMore": true,
"cursor": "<string>"
}List all policy templates in the organization.
curl --request GET \
--url https://api.ledger.so/v1/policies \
--header 'Api-Key: <api-key>'{
"object": "list",
"data": [
{
"object": "policy",
"id": "<string>",
"name": "<string>",
"createdAt": 123,
"updatedAt": 123,
"description": "<string>",
"timeRestrictions": {
"ttlMinutes": 123,
"onExpiry": "freeze",
"activeHoursStart": 11,
"activeHoursEnd": 11,
"activeTimezone": "<string>",
"activeDays": [
3
]
},
"spendingRestrictions": {
"maxAmount": 123,
"cumulativeMax": 123,
"maxAuthCount": 123,
"cooldownMinutes": 123,
"limitPerAuth": 123,
"limitPerDay": 123,
"limitPerMonth": 123
},
"merchantRestrictions": {
"allowedMccs": [
"<string>"
],
"blockedMccs": [
"<string>"
],
"merchantHint": "<string>",
"onDrift": "freeze"
},
"attestation": {
"requireAttestation": true,
"intentTolerance": 0.5,
"credentialExposure": "never"
}
}
],
"hasMore": true,
"cursor": "<string>"
}API key for authentication. Get your key from the Dashboard.
Number of items per page (max 100)
1 <= x <= 100Pagination cursor from previous response