/api/license
Authentication Requirements
All protected endpoints require:- Bearer Token: Your license key in the Authorization header
- Domain Validation: Domain must be provided and match your license configuration
- Product ID Validation: Product ID must be provided and match your license’s product
Authentication Headers
Endpoint 1: Verify License
Purpose: Verify your license key and get license informationMethod:
GETAuthentication: Required
Rate Limited: Yes (60 requests/minute)
cURL Command
Alternative with Domain and Product ID in Body
Example Response
Common Error Responses
401 Unauthorized - Invalid license key:Endpoint 2: Generate Download Token
Purpose: Create a one-time download token for accessing product filesMethod:
POSTAuthentication: Required
Rate Limited: Yes (60 requests/minute)
cURL Command
Alternative with Domain and Product ID in Body
Example Response
Common Error Responses
403 Forbidden - API download disabled:Endpoint 3: Download File
Purpose: Download a file using a one-time tokenMethod:
GETAuthentication: None (uses token)
Rate Limited: No
cURL Command
-O: Save file with original filename-J: Use filename from Content-Disposition header
Alternative with Custom Filename
Example Response
Success: File download with headers:Complete Workflow Example
Here’s a complete example of the entire download process:Step 1: Verify License
Step 2: Generate Download Token
Step 3: Download File
Rate Limiting
- Default Limit: 60 requests per minute per IP
- Response: HTTP 429 when exceeded
- Headers: Rate limit information included in responses
Check Rate Limit Status
Security Features
- One-Time Tokens: Download tokens expire after 24 hours and can only be used once
- Domain Validation: All requests must include and validate the domain
- Product ID Validation: All requests must include and validate the product ID
- Bearer Authentication: Secure token-based authentication
- Rate Limiting: Prevents abuse and ensures fair usage
- No-Cache Headers: Prevents browser caching of sensitive responses
Troubleshooting
Common Issues
-
“Authorization header missing”
- Ensure
Authorization: Bearer YOUR_KEYheader is present
- Ensure
-
“Domain is required”
- Include
X-Domainheader or domain in request body
- Include
-
“Product ID is required”
- Include
X-Product-IDheader or product_id in request body
- Include
-
“License is inactive”
- Check if license is active in admin panel
-
“Product ID mismatch”
- Ensure the product_id matches your license’s product
-
“Too many requests”
- Wait for rate limit window to reset (1 minute)
-
“Invalid or expired download token”
- Generate a new download token
- Tokens expire after 24 hours

