Skip to main content
POST
Reveal card details

Display card details securely

This endpoint returns one short-lived URL for a Reap-hosted card-details widget. The widget displays the card number, expiry date, and CVV together and includes a control for copying the card number. It does not display the billing address. Sensitive card data is never returned to your backend or parent-page JavaScript.
Call this endpoint from your backend. Never expose your API key in browser or mobile application code.
1

Request an access URL from your backend

Call the endpoint when an authenticated and authorized user opens the card-details view. Keep the API key in your backend’s secrets manager.
Return only the short-lived accessUrl to your frontend through your own authenticated session. Do not log or persist it.
2

Render the card details

Use the returned URL directly as the source of one iframe. Do not parse, modify, or reconstruct it.
Set the iframe’s color-scheme to light or dark to match your page, or omit it to use the browser’s inherited color preference (normally the user’s system preference). Your application can style the iframe element and its container, but it cannot directly style or inspect the cross-origin contents.
3

Discard the access URL

The URL is short-lived. Clear the iframe source and discard the URL when the card-details view closes. Request a fresh URL whenever the user opens or retries the view.
The interactive playground can demonstrate the API response, but it does not render the card widget.

Security requirements

  • Keep your API key on your backend.
  • Return the access URL only to an authenticated user who is authorized to view that card.
  • Keep the URL only in memory for the active card-details view. Do not log, persist, decode, inspect, or modify it.
  • Do not send the URL to analytics, error reporting, or session-replay tools.
  • Use the iframe sandbox, clipboard permission, and no-referrer policy shown above.

Troubleshooting

Authorizations

x-api-key
string
header
required

Enter your API key

Path Parameters

cardId
string<uuid>
required

The card's ID, as returned by List cards or Create card.

Response

accessUrl
string<uri>
required

A link to a secure, Reap-hosted page that shows the card number, expiry date and CVV. Load it in an iframe straight away: it expires after 1 minute and must never be stored or logged.