Skip to main content
GET
/
v1
/
users
/
{userId}
/
cards
List user's cards
curl --request GET \
  --url https://api.ledger.so/v1/users/{userId}/cards \
  --header 'Api-Key: <api-key>'
{
  "data": [
    {
      "id": "<string>",
      "agentId": "<string>",
      "userId": "<string>",
      "type": "single",
      "purpose": "<string>",
      "status": "active",
      "last4": "<string>",
      "createdAt": 123,
      "credentialExposure": "never",
      "expirationMonth": "<string>",
      "expirationYear": "<string>",
      "limits": {
        "perAuth": 123,
        "perDay": 123,
        "perMonth": 123
      },
      "merchantHint": "<string>",
      "ttlDays": 123
    }
  ],
  "hasMore": true,
  "cursor": "<string>"
}

Authorizations

Api-Key
string
header
required

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

Path Parameters

userId
string
required

The user ID

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

Card list

data
object[]
required
hasMore
boolean
required
cursor
string | null