Skip to main content
GET
/
v1
/
policies
List policies
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>"
}

Authorizations

Api-Key
string
header
required

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

Query Parameters

limit
integer
default:20

Number of items per page (max 100)

Required range: 1 <= x <= 100
cursor
string

Pagination cursor from previous response

Response

Policy list

object
enum<string>
required
Available options:
list
data
object[]
required
hasMore
boolean
required
cursor
string