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.
1. Get your credentials
Contact your Sardine integration contact to receive aclientId and clientSecret for the sandbox environment. All API calls use HTTP Basic Auth with these credentials.
Never expose your
clientSecret in frontend code. All calls to api.sardine.ai must be made from your backend.2. Create a customer
Register the user in the Sardine system using their phone number. Store the returnedcustomerId against your own user record.
3. Generate a widget URL and redirect the user
Request a widget URL from your backend, then redirect the user to it. The widget handles all verification steps.widgetUrl. When they finish, Sardine redirects them back to your successUrl.
4. Retrieve the verified identity
Once the user returns to yoursuccessUrl, fetch their verified data from your backend.
Once you’ve completed a successful end-to-end test in sandbox, reach out to your Sardine contact to complete the integration review and receive production credentials. For a full implementation reference see the API Integration guide.