Skip to main content
GET
/
v1
/
cards
/
{cardId}
/
policy
Get card policies
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>"
  }
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Path Parameters

cardId
string
required

The card ID

Response

Card policy

cardId
string
required
ttl
object
activeHours
object
cumulative
object
cooldown
object
authCount
object
attestation
object
merchantDrift
object