visualsApi for creating new datasets and syncing assets to R2.
Base URL (prod): https://api.idoptlab.com/api
All write operations require:
Authorization: Bearer <API_KEY>
1. Create a new dataset (JSON/text payload)
POST /api/datasets
2. Create a new dataset (base64 payload)
POST /api/datasets
3. Sync bundled assets into R2
Use this when a file already exists undervisualsApi/public/data/... and you want it copied into R2.
POST /api/datasets/sync-assets
4. List, fetch, and delete datasets
Notes
POST /api/datasetsis best for brand-new payloads from scripts/tools.POST /api/datasets/sync-assetsis best for promoting bundled static assets into R2.- Existing raw upload endpoint remains available:
PUT /api/datasets/{key}.