v66

latestOpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-042174421.1 MB
Card

Get card embed iframe

Returns a Lithic-hosted HTML document for a single card detail or PIN setting control. Use the URL, including its query parameters, as the src of an iframe. The session must be created on your server with POST /v1/cards/{card_token}/embed.

get/v1/embed

Query parameters

sessionstring required

The short-lived credential returned by the session creation endpoint. Treat it as sensitive and use it only in the iframe src.

type'PAN' | 'CVV' | 'EXP_MONTH' | 'EXP_YEAR' | 'PIN_SETTING' required

The type of embed to return. CARD_EMBED sessions support PAN, CVV, EXP_MONTH, and EXP_YEAR. PIN_SETTING_EMBED sessions support only PIN_SETTING.

stylesstring byte

Optional base64-encoded JSON object containing base CSS declarations and nested pseudo-class declarations to apply to the iframe. URL-encode the base64 value when adding it to the query string. Styles that load external resources are not permitted. The encoded value cannot exceed 4096 characters.

Supported pseudo-classes are :enabled, :read-write, :read-only, :placeholder-shown, :valid, :invalid, :disabled, :hover, :focus-within, :focus, :focus-visible, and :active.

Response

Lithic-hosted card embed HTML.