Wire databurger into your training pipeline with APIs: search datasets, pull samples, create labeling and evaluation tasks, subscribe to delivery webhooks.
GET /datasets lists packages for sale by domain; /{did} for detail, /sample for a free sample, /report for the QA report; POST /{did}/buy to order, GET /datasets/mine to list purchases.POST /tasks publishes a task and freezes its funds; workers /claim and /evaluate; the buyer's /accept triggers settlement; /reject returns it for rework with a reason./labeling/jobs to create and claim, /submit to deliver results, /qc for the QA verdict; plus a pending-QA queue and consistency statistics.GET /scenario-tasks searches SOP scenarios by category and keyword (public, no auth); /meta for the category tree and totals; /{tid}/claim to claim.GET /ledger for transactions, /invoices, POST /recharge, /withdrawals and /withdraw for payouts, POST /kyc for identity verification.GET /projects for stage and progress, /collections for collection batches, /notifications, and /metrics/public for public platform metrics (no auth required).| Step | Endpoint | Key parameters | Returns |
|---|---|---|---|
| 1. Sign in | POST /login-password | phone, password, role | token and account info |
| 1'. Code sign-in | POST /send-code → POST /login | phone, code, role | token and account info |
| 2. Send the token | All business endpoints | Header Authorization: Bearer <token> | — |
| 3. Verify | GET /me | — | Account ID, role, balance, KYC status |
buyer) publish tasks, recharge and buy datasets; workers (judge) claim, submit and score. Out-of-role calls return 403 with a specific reason.401 {"detail":"Not signed in or session expired"} — sign in again. Five failed attempts for the same phone number within 15 minutes triggers a temporary lock that returns 429.POST /login-password with your phone number and password returns a token.
Call GET /me and GET /datasets first to confirm auth and connectivity (the latter needs no token).
POST /tasks freezes the task funds; after the worker claims and submits, the buyer's /accept settles it.
Copy# 1) Sign in and get a token curl -X POST "https://aidataburger.com/api/v1/login-password" \ -H "Content-Type: application/json" \ -d '{"phone":"13800000000","password":"********","role":"buyer"}' # 2) Search datasets (read-only, no token needed) curl "https://aidataburger.com/api/v1/datasets?domain=medical" # 3) Publish a video evaluation task curl -X POST "https://aidataburger.com/api/v1/tasks" \ -H "Authorization: Bearer $DB_TOKEN" \ -H "Content-Type: application/json" \ -d '{"title":"Livestream clip compliance review","video_url":"https://.../a.mp4"}'
/tasks/mine, /notifications and /projects for status.