Overview
The Connect API enables third-party marketplaces to access LootRush user data through an OAuth-style consent flow. Users explicitly grant permission for your application to access their profile, email, wallet, and KYC information.Prerequisites
Before implementing the Connect API, you must register your integration with LootRush:- Contact LootRush at [email protected] to request integration access
- Provide your redirect URI(s) - The URL(s) where users will be redirected after granting consent
- Specify required scopes - The data access permissions your integration needs
- Integration ID - Your unique integration identifier
- API Key - For authenticating API requests
Integration Flow
Step 1: Redirect User to Consent Page
Redirect the user to the LootRush Connect page:| Parameter | Required | Description |
|---|---|---|
integration_id | Yes | Your unique integration identifier (provided by LootRush) |
Step 2: User Grants Consent
The user reviews the requested permissions and clicks “Allow” to grant access. Only business admins can grant consent on behalf of their organization.Step 3: Receive Consent ID
After consent, the user is redirected to your preconfigured redirect URI with the consent ID:Step 4: Fetch User Data
Use the consent ID to retrieve the user’s data via the API.Authentication
All API requests must include your API key in thex-api-key header:
Scopes
The following scopes can be configured for your integration:| Scope | Description |
|---|---|
profile | User’s name and profile information |
email | User’s email address and verification status |
wallet | Connected wallet addresses (Base and Polygon) |
kyc | Identity verification information (name, document, tax ID) |
Scopes are configured by LootRush during integration registration. Contact [email protected] to modify your integration’s allowed scopes.
Get User Data
Retrieves the user data for a given consent.Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
consentId | string | Yes | The consent ID received after user authorization |
Example Request
Response
The consent identifier
Your integration identifier
ISO 8601 timestamp of when consent was granted
List of granted scopes
User data object containing the following fields based on granted scopes:
KYC information (requires
kyc scope):
Verified email from KYC
Account type: “individual” or “business”
Legal first name
Legal last name
Business legal name (null for individuals)
ID document type (e.g., “PASSPORT”)
ID document number
Tax identification number
Example Response
Error Responses
| Status Code | Error Message | Description |
|---|---|---|
401 | Unauthorized: Business ID not found | Invalid or missing API key |
403 | Forbidden: Consent does not belong to your business | The consent was granted to a different integration |
404 | Consent not found | The consent ID does not exist |
410 | Gone: Consent has been revoked | The user has revoked this consent |
Example Error Response
Consent Revocation
Users can revoke consent at any time from their LootRush account settings. When a consent is revoked:- API requests with that consent ID will return
410 Gone - Your application should handle this gracefully and prompt the user to reconnect
Best Practices
- Store the consent ID securely: Associate the consent ID with the user in your system for future API calls.
-
Handle revocation: Check for
410responses and provide a way for users to reconnect. - Request only necessary scopes: When registering your integration, only request the scopes you actually need to build trust with users.
- Cache responsibly: User data can change. Consider refreshing data periodically rather than caching indefinitely.
Support
For API support, please contact:- Email: [email protected]
- Dashboard: LootRush Dashboard