Redeem a secure-data grant for the full PAN
POST
/v1/cards/{id}/secure-data/redeemRequires an API client bearer token.
Redeems a show-once secure-data token (sent in the request body, never the URL) for the full card PAN, returned exactly once. Single-use: a second redeem of the same token returns 404. Not idempotency-keyed.
Parameters
Path parameters
| Name | Required | Description |
|---|---|---|
| id | required |
Request body
tokenstringrequired
Example
curl -X POST https://api.rigid.fi/v1/cards/{id}/secure-data/redeem \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"token": "string"
}'Responses
200The full plaintext PAN, returned exactly once.
panstringrequired
400Validation error
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401Authentication required
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403Forbidden
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404Grant unknown, expired, or already redeemed; or card not found
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500Internal server error
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
503Secure data temporarily unavailable — retry with the same token
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring