Quickstart
This quickstart shows the smallest production-shaped Hosted Experience integration:
- keep the Aarthik Labs API key on your back-end
- create an
embedURLfor a borrower - return only
embedURLto your front-end - open the URL in an approved surface
Prerequisites
Before you start, make sure you have:
- a platform base URL from Aarthik Labs
- a platform API key for the tenant or application
- at least one enabled credit product for the API key scope
- an approved front-end domain if you plan to render the journey inside an
iframe
Use environment variables on your back-end:
Step 1: Read Available Credit Products
Use this call when your app needs to decide which product entry points to show.
Example response:
If personalLoanEnabled is true, you can create a Personal Loan Hosted Experience URL. If goldLoanEnabled is true, you can create a Gold Loan Hosted Experience URL.
Step 2: Create An Embeddable URL
Create the URL from your back-end. Send a stable borrowerProviderID, an explicit journeyType, and the borrower’s contact number.
Example response:
To print only the URL in a terminal:
Step 3: Open The URL
Return only embedURL from your back-end to your front-end. Then open it in the borrower-facing surface.
For a web iframe:
The URL contains a short-lived bootstrap token in the URL fragment. Open it immediately after creating it. If a borrower returns later, call your back-end again and create a fresh URL for the same borrowerProviderID.
What To Build Next
After the first URL works, build these pieces around it:
- a back-end route that validates your app user before calling Aarthik Labs
- a product picker that uses
GET /api/lab/features - a front-end loading and retry state
- minimal and extended pre-fill payloads for Personal Loan and Gold Loan
- production checks for domain allowlisting, API key rotation, and borrower identity stability