Card links for every app
Every application can now mint a card link for a person it provisioned and verified. It is how that person adds a card.
What changed
POST /v1/users/:id/linkswith{ "purpose": "card" }, and optionally areturnUrland astate, answers201with aurland itsexpiresAt. The link works once and must be opened within 15 minutes.- The page shows your application's name and logo, says your application never sees the card, takes a card, Apple Pay or Google Pay, and asks for no Layout sign-in.
- Return URLs. Register them on App details in the console:
https, your app's own scheme, orlocalhostfor sandbox. The page sends the person back withstatus=card_addedorstatus=canceled, and yourstate. - A full account. On an account the person signs in to, a card link replaces only a card your own card links added; otherwise nothing is saved and the person returns with
status=canceled. On an account nobody signs in to, which is every account a verify made, it replaces the default card, and the page names that card before they save. See What the person sees. - No url on
card_required. For a person you provisioned, a build that fails withno_cardorcard_not_orderable, and a confirm that answersbuild_onlywithcard_required, carry nourl. Mint a card link instead.
POST /v1/users/usr_4b8e9a01c2d3/links
{ "purpose": "card", "returnUrl": "com.acme.assistant:/layout/card", "state": "c1f9e2" }
→ 201
{ "url": "https://layout.link/h/3q2Xw7…", "expiresAt": "2026-10-21T17:15:00.000Z", "purpose": "card" }
Why it matters
A person you provisioned has no Layout sign-in, so a page that asked for one stopped them. The card link asks only for the card, and brings them back to your app.
What to do
Register a return URL in the console. When Layout asks for a card, mint a link and open it: as a sheet in an iOS app, in ASWebAuthenticationSession or SFSafariViewController, or as a link in a chat or text. See Card links.
Breaking changes
Code that sent failure.next.url or error.next.url on card_required to a person you provisioned gets no url now. Mint a card link instead.