Skip to main content
GET
/
api
/
v1
/
cards
/
{id}
/
details
curl https://api.agentcard.sh/api/v1/cards/cm3abc123/details \
  -H "Authorization: Bearer sk_test_..."
{
  "id": "cm3abc123",
  "cardholderId": "ch_abc123",
  "pan": "4242424242424242",
  "cvv": "123",
  "expiry": "03/28",
  "last4": "4242",
  "balanceCents": 750,
  "spendLimitCents": 1000,
  "status": "OPEN"
}
Returns the full card number (PAN), CVV, and other details. Use this endpoint to retrieve credentials for making purchases.
This endpoint returns sensitive card data. Every call is audit-logged. Only request card details when your agent needs them to complete a purchase.

Path parameters

id
string
required
The card ID.

Response

id
string
Unique card identifier.
cardholderId
string
The cardholder this card belongs to, if any.
pan
string
Full card number (Primary Account Number).
cvv
string
Card security code.
expiry
string
Expiration date in MM/YY format.
last4
string
Last 4 digits of the card number.
balanceCents
integer
Remaining balance in cents.
spendLimitCents
integer
The card’s total spend limit in cents.
status
string
OPEN or CLOSED.
curl https://api.agentcard.sh/api/v1/cards/cm3abc123/details \
  -H "Authorization: Bearer sk_test_..."
{
  "id": "cm3abc123",
  "cardholderId": "ch_abc123",
  "pan": "4242424242424242",
  "cvv": "123",
  "expiry": "03/28",
  "last4": "4242",
  "balanceCents": 750,
  "spendLimitCents": 1000,
  "status": "OPEN"
}