Get KYC Widget URL
Generates a hosted widget URL that you redirect your user to (or embed as an iframe) to complete KYC or share an existing verified identity.
Flows
-
kyc_input(default) — The user verifies their identity from scratch in the Sardine hosted widget (passport, driver’s license, liveness check, etc.). Use this for new users or when you need specific additional verification steps. -
kyc_sharing— The user consents to share an identity already verified by another Sardine partner. This produces near-instant approval for returning Sardine users.
Scopes Control which data the widget will collect or share:
profile— Basic personal information (name, DOB, address, email, phone) -doc_kyc— Government ID document scan + liveness check -liveness— Liveness check only -ssn— Social Security Number (US users)
After the Widget
When the user completes the flow the widget redirects to successUrl. Call GET /identity/entities/{customerId} to retrieve the verified data.
Documentation Index
Fetch the complete documentation index at: https://docs.payments.sardine.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
HTTP Basic Auth. Use your clientId as the username and clientSecret as the password.
Body
Sardine customer UUID
"3f8c1a22-1234-4abc-9def-000000000001"
URL to redirect the user to after successful completion
"https://yourapp.com/kyc/success"
Fallback URL if automated verification fails and manual review is needed
"https://yourapp.com/kyc/manual"
Verification scopes to request. Defaults to ["profile"]. Use ["profile", "doc_kyc"] for a full document verification flow.
profile, doc_kyc, liveness, ssn ["profile", "doc_kyc"]Verification flow type. Defaults to kyc_input.
kyc_input, kyc_sharing "kyc_input"
If true, the widget automatically redirects to successUrl upon completion without showing a confirmation screen.
false
Response
Widget URL generated successfully
Fully-formed URL to the Sardine hosted KYC widget. Redirect the user here or embed it in an iframe.
"https://identity.sardine.ai/?client_token=abc123&consent_id=xyz789&success_url=..."