Create and complete a Stripe Identity verification session for user onboarding

domain: stripe.com/docs/identity · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the Stripe server-side SDK and set your secret key via environment variable STRIPE_SECRET_KEY.
  2. Call the Stripe Identity API to create a VerificationSession, specifying type 'document' or 'id_number' and passing a return_url for redirect after the hosted flow.
  3. Return the client_secret from the VerificationSession to your frontend and use Stripe.js (loadStripe + stripe.verifyIdentity) to launch the hosted verification modal.
  4. Listen for the identity.verification_session.verified or identity.verification_session.requires_input webhook events to determine outcome.
  5. On the verified event, retrieve the VerificationSession server-side to access the verified outputs (name, date of birth, address) and store the result against your user record.
  6. Handle requires_input by inspecting the last_error field and prompting the user to retry or contact support.

Known gotchas

Related routes

Create a Stripe Identity verification session and retrieve the verified output
stripe.com/docs · 6 steps · unrated
Redact a Stripe Identity VerificationSession's PII via the redact API to fulfill a data-deletion request
docs.stripe.com · 5 steps · unrated
Implement the Plaid Identity Verification flow for user onboarding
plaid.com/docs/identity-verification · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans