Create card embed session

Creates 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.

Path Params
uuid
required
Body Params

Card embed session parameters.

Parameters for creating a short-lived card embed session.

string
enum
required

The type of card embed session to create.

CARD_EMBED sessions can load PAN, CVV, EXP_MONTH, and EXP_YEAR iframes.

PIN_SETTING_EMBED sessions can load only the PIN_SETTING iframe.

Allowed:
int64

Unix timestamp at which the session expires. The value must be in the future and no more than
10 minutes after the request. If omitted, the session expires 10 minutes after the request.

uri
required

Canonical HTTPS origin of the page that will embed the iframe. Lithic embeds will verify the target_origin against the parent application's origin.
The origin must not contain a path, query parameters, fragment, or credentials.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json