- Initiating an EntityLocker consent session
- Tracking consent completion
- Downloading consented documents
- Fetching user and entity verification details
Before you begin, ensure you have:
- Generated a Sandbox
x-api-key - Obtained a JWT
authorizationtoken using the Authenticate API - A business entity ready to provide consent through EntityLocker
Initiate EntityLocker session
Use the Initiate Session API to start the EntityLocker consent flow.The API returns a
After receiving the response, redirect the user to the
session_id to track the session and an authorization_url where you must redirect the user to authenticate and grant document consent.Request
Request
Response
Response
Unique identifier to track this EntityLocker consent session
Redirect URL where the user authenticates and grants consent for document sharing
authorization_url to complete authentication and consent.Check session status
After the user completes the consent flow, verify the session status using the Get Session Status API.
Session statuses:
Request
Request
Response - Session created
Response - Session created
Response - Session succeeded
Response - Session succeeded
created– session initiated, user has not completed consentsucceeded– user authenticated successfully and granted document consentfailed– authentication or consent failedexpired– session expired before consent was granted
succeeded, the response includes documents_consented, listing the document types the entity approved for sharing.Fetch documents
Once the session status is
Available document types:
succeeded, retrieve the consented documents using the Fetch Document API.EntityLocker returns all consented documents for the session as pre-signed download URLs. You don’t need individual document IDs.Request
Request
Response
Response
Error - Consent not provided
Error - Consent not provided
company_master_details– incorporation certificate from Ministry of Corporate Affairsgstn_details– GST registration certificateudhyam_certificate– Udyam (MSME) registration certificate
- Pre-signed S3
urlfor direct download - File
sizein bytes metadataincluding issuer, content type, and description
Fetch user profile
Retrieve details of the user who authenticated and granted consent on behalf of the entity using the Get User Profile API.
The response includes:
Request
Request
Response
Response
- User’s full name
- Date of birth
- Mobile number
- Gender
- Whether they have an e-Aadhaar linked
Use this information for audit logs, identifying the authorized signatory, and compliance recordkeeping.
Fetch entity details
Retrieve verified entity-level information derived from the shared documents using the Get Entity Details API.
The response includes:
Request
Request
Response
Response
- Entity name (legal business name)
- Date of incorporation
- Contact email and mobile number
- Verification source (e.g., CIN from MCA)
- Business KYC and onboarding
- Compliance verification workflows
- Internal audit trails
- Downstream regulatory reporting
Next steps
With the fetched documents, entity details, and user profile information, you can:- Complete business onboarding and KYC verification
- Store documents securely for compliance purposes
- Validate entity information against other data sources
- Trigger downstream workflows like account creation or credit assessment
View EntityLocker API reference
Explore detailed API documentation, parameters, and response schemas