Path Parameters
The card ID to retrieve OTPs for
Response
Indicates if the request was successful
Show OTPs data
Show OTPs data
Array of the 5 most recent OTPs, sorted by creation date (newest first)
Success message
Copy
curl -X GET https://api.uncash.io/api/v1/cards/123/otps \
-H "Authorization: Bearer uc_your_api_token_here"
Copy
{
"success": true,
"message": "Card OTPs retrieved successfully",
"data": {
"otps": [
{
"id": "68a30b08d664fb7ad20eec85",
"code": "123456",
"amount": 1000,
"currency": "USD",
"masked_pan": "4559 88** **** 1234",
"card_name": "My Business Card",
"created_at": "2025-08-20T10:00:00.000Z"
},
{
"id": "67b21c19e775gc8be31ffd96",
"code": "789012",
"amount": 2500,
"currency": "USD",
"masked_pan": "4559 88** **** 1234",
"card_name": "My Business Card",
"created_at": "2025-08-20T09:30:00.000Z"
},
{
"id": "66c32d2af886hd9cf42gge17",
"code": "345678",
"amount": 750,
"currency": "USD",
"masked_pan": "4559 88** **** 1234",
"card_name": "My Business Card",
"created_at": "2025-08-20T08:15:00.000Z"
}
],
"cardInfo": {
"id": 123,
"nickname": "My Business Card"
}
},
"timestamp": "2025-08-20T10:11:08.216Z"
}