Generate a hosted KYC link for an existing customer
Generate a single-use hosted URL the customer can complete to verify their identity, and (where supported) a provider-specific token for embedding the verification flow directly via the provider's SDK.
The customer must already exist — create them with POST /customers first. Calling this endpoint does not change the customer's kycStatus; the customer remains PENDING until they complete (or fail) the hosted flow.
Each call returns a fresh link. Previously-issued links are not invalidated, but they remain single-use and will expire on their own. For request-level retry safety, include an Idempotency-Key header.
Headers
A unique identifier for the request. If the same key is sent multiple times, the server will return the same response as the first request.
Request body
Example request
{
"redirectUri": "https://app.example.com/onboarding/completed"
}Response
KYC link generated
Example response
{
"kycUrl": "https://kyc.lightspark.com/onboard/abc123def456",
"expiresAt": "2027-01-15T14:32:00Z",
"provider": "SUMSUB",
"token": "_act-sbx-jwt-eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}