curl --request GET \
--url https://api.ledger.so/v1/cards/{cardId}/policy \
--header 'Api-Key: <api-key>'{
"cardId": "<string>",
"ttl": {
"minutes": 123,
"expiresAt": 123,
"isExpired": true,
"onExpiry": "freeze"
},
"activeHours": {
"start": 11,
"end": 11,
"timezone": "<string>",
"activeDays": [
3
],
"isWithinActiveHours": true
},
"cumulative": {
"max": 123,
"spent": 123,
"remaining": 123
},
"cooldown": {
"minutes": 123,
"lastTransactionAt": 123,
"cooldownEndsAt": 123,
"isInCooldown": true
},
"authCount": {
"max": 123,
"current": 123,
"remaining": 123
},
"attestation": {
"required": true,
"intentTolerance": 123
},
"merchantDrift": {
"action": "freeze",
"pinnedMerchant": "<string>"
}
}Get the card’s current policy settings and status (TTL, active hours, cooldown, etc.).
curl --request GET \
--url https://api.ledger.so/v1/cards/{cardId}/policy \
--header 'Api-Key: <api-key>'{
"cardId": "<string>",
"ttl": {
"minutes": 123,
"expiresAt": 123,
"isExpired": true,
"onExpiry": "freeze"
},
"activeHours": {
"start": 11,
"end": 11,
"timezone": "<string>",
"activeDays": [
3
],
"isWithinActiveHours": true
},
"cumulative": {
"max": 123,
"spent": 123,
"remaining": 123
},
"cooldown": {
"minutes": 123,
"lastTransactionAt": 123,
"cooldownEndsAt": 123,
"isInCooldown": true
},
"authCount": {
"max": 123,
"current": 123,
"remaining": 123
},
"attestation": {
"required": true,
"intentTolerance": 123
},
"merchantDrift": {
"action": "freeze",
"pinnedMerchant": "<string>"
}
}API key for authentication. Get your key from the Dashboard.
The card ID
Card policy