Talk to usGet started
Cards

Reveal a card

Return the full card number, the security code and the expiry. Reveal only at the moment of use; AgentPay never logs the number.

GET/v1/cards/{id}
Live API. A POST to /v1/cards issues a real card.
Authorizations
Authorizationstringrequired
Bearer token: Authorization: Bearer mk_live_.... Create a key in the AgentPay console under Developer, API keys.
Path parameters
idstringrequired
The card id from POST /v1/cards.
Response200application/json
idstring
The card id.
last4string
The last four digits.
numberstring
The full card number.
number_formattedstring
The number in groups of four.
cvcstring
The security code.
expstring
The expiry as MM/YY.
request_idstring
The request id, also in the X-Mooj-Request-Id header.
Errors
StatusCodeWhen
404card_not_foundNo such card on your account.
502reveal_failedThe issuer could not return the card. Retry.