Card
Create card embed session
Changed onCreates a short-lived session for displaying card details or setting a card PIN in Lithic-hosted iframes. Create the session on your backend to not expose your API key in browser code.
A session token can only be used to reveal card details (per embed type) or submit a pin a single time. Attempting to re-use session tokens will result in 401's.
post/v1/cards/{card_token}/embed
Request
- Base URLhttps://sandbox.lithic.com
- URLhttps://sandbox.lithic.com/v1/cards/{card_token}/embed
- AuthAPI key in header Authorization
Path parameters
card_tokenstring uuid required
Request body
Example request
{
"type": "CARD_EMBED",
"max_pin_length": 4,
"target_origin": "https://example.com"
}Response
A short-lived card embed session.
Example response
{
"session": "eyJhb..."
}Changes
- info
added the new optional request property
- info
- info
endpoint added
- info