Important Notes
Important information and best practices for using the Dashboard Generation API.
Authentication
API key authentication is the only supported auth method for this endpoint.
Ensure your API key is kept secure and never exposed in client-side code.
Rotate your API keys regularly for security.
File Limits
Processing Modes
Synchronous Processing
For small files, the dashboard may be generated immediately and returned in the POST response. This is ideal for quick testing and small datasets.
Asynchronous Processing
For larger files or complex datasets, processing happens in the background:
Use the POST response to retrieve the returned generation_id and the status value, which will be "processing".
Poll the status endpoint using the generation_id to check progress and final status.
Alternatively, set up webhooks to receive notifications when processing completes.
You can also subscribe to your existing websocket channel using the returned generation_id.
Share Links
Share-link behavior depends on your plan:
Free plan: Public 7-day links
Premium plan: Private controls with email restrictions and custom expiration
Premium Features
The following features are only available on premium plans:
allowed_emails- Restrict dashboard access to specific email addressesallow_pdf_export- Enable PDF export functionalityallow_scrollable_cards- Enable scrollable card layouts
Error Handling
Always implement proper error handling in your integration:
Check HTTP status codes (
200for success,4xxfor client errors,5xxfor server errors)Handle network timeouts and retries appropriately
Validate file formats before uploading
Check file size before making the request
Rate Limits
Be mindful of rate limits when making multiple requests. If you encounter rate limit errors:
Implement exponential backoff
Batch requests when possible
Contact support if you need higher limits
Best Practices
Validate files before upload — check format and size client-side.
Use webhooks — prefer webhooks over polling for better efficiency.
Handle async responses — always check the status field in responses.
Store generation IDs — keep track of generation_id values for status checking.
Monitor processing — set up monitoring for failed generations.
Test thoroughly — test with various file sizes and formats before production use.
Support
For additional help or questions:
Check the API Endpoints documentation
Review Webhooks setup guide
Contact Alloy support for assistance
Last updated