Path Parameters
The card ID to request OTP for
Response
Indicates if the request was successful
Success message
curl -X POST https://api.uncash.io/api/v1/cards/abc123/otps/request \
-H "Authorization: Bearer uc_your_api_token_here"
{
"success": true,
"message": "Email OTP requested successfully",
"data": {
"message": "Email OTP requested successfully",
"cardInfo": {
"id": "abc123",
"providerCardId": "fin_card_xyz789",
"name": "My Business Card",
"otp_code": "123456"
}
},
"timestamp": "2025-09-26T10:30:00.000Z"
}
Request to retrieve OTP from email for a specific card
curl -X POST https://api.uncash.io/api/v1/cards/abc123/otps/request \
-H "Authorization: Bearer uc_your_api_token_here"
{
"success": true,
"message": "Email OTP requested successfully",
"data": {
"message": "Email OTP requested successfully",
"cardInfo": {
"id": "abc123",
"providerCardId": "fin_card_xyz789",
"name": "My Business Card",
"otp_code": "123456"
}
},
"timestamp": "2025-09-26T10:30:00.000Z"
}
curl -X POST https://api.uncash.io/api/v1/cards/abc123/otps/request \
-H "Authorization: Bearer uc_your_api_token_here"
{
"success": true,
"message": "Email OTP requested successfully",
"data": {
"message": "Email OTP requested successfully",
"cardInfo": {
"id": "abc123",
"providerCardId": "fin_card_xyz789",
"name": "My Business Card",
"otp_code": "123456"
}
},
"timestamp": "2025-09-26T10:30:00.000Z"
}
{
"success": false,
"error": "Card not found or access denied",
"timestamp": "2025-09-26T10:30:00.000Z"
}
{
"success": false,
"error": "No OTP found for this card",
"timestamp": "2025-09-26T10:30:00.000Z"
}