Skip to main content
POST
Generate PIN View Token

Overview

Generates a time-limited secure token that allows users to view their card PIN as a secure image. The PIN is never transmitted to or stored by your application, ensuring security and compliance.
PCI ComplianceThis endpoint maintains PCI compliance by delivering PIN data as a secure image. Your application never handles the actual PIN value.

Authentication

This endpoint requires authentication via Bearer token:

Request

Headers

string
required
Your public API client key
boolean
default:false
Set to true to route requests to the US backend environment
string
required
Bearer token for authentication

Body

The request body is optional. If omitted, default styling will be applied to the PIN image.
object
Customize the visual appearance of the PIN image

Request Example

Response

Success Response

string
Secure, time-limited token (UUID format)Lifetime: ~10 minutesUsage: Single-use token that becomes invalid after the image is accessed
string
URL that renders PIN as a secure imageUsage: Display PIN by using this URL as the src attribute of an <img> tagFormat: <HOST>/details-image?token={token}Security: Treat this URL as highly sensitive. Do not log or store it.

Error Responses

Integration Method

Display PIN as a secure image without interactive elements.

Basic Implementation

React Component Example

Security NoteImage URLs contain sensitive PIN information. Always:
  • Use HTTPS only
  • Never log or store the imageUrl
  • Display in secure contexts only
  • Clear the image from DOM when user is done viewing

Customization Examples

Dark Theme

Light Theme

Brand Colors

Security Best Practices

Token Security
  • Tokens expire after ~10 minutes
  • Single-use tokens become invalid after first access
  • Generate new tokens for each PIN view request
  • Never store, cache, or log tokens
PCI ComplianceUsing this endpoint ensures PCI compliance as PIN data is delivered as a secure image. Your application never handles the actual PIN value.
URL HandlingTreat imageUrl as highly sensitive. Use HTTPS only, never log these URLs, and display only in authenticated, secure contexts.

Best Practices

Error Handling

Cleanup After Viewing

  • POST /v1/card/set-pin/token - Generate token to set or change card PIN
  • POST /v1/card/details/token - Generate token to view card details
  • GET /v1/card/status - Check card status before viewing PIN