Label Studio: import tasks via API and export annotations

domain: labelstud.io/guide · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Start a Label Studio instance and create a project, noting the project ID from the URL.
  2. Authenticate API requests using a user token available from the Label Studio account settings; include it as Authorization: Token YOUR_TOKEN in all requests.
  3. Import tasks by POSTing to /api/projects/{PROJECT_ID}/import with a JSON array of task objects, where each object has a 'data' key containing the fields referenced in the labeling configuration.
  4. Verify task import by calling GET /api/projects/{PROJECT_ID}/tasks to confirm the expected task count.
  5. After annotation, export annotations by calling GET /api/projects/{PROJECT_ID}/export?exportType=FORMAT where FORMAT is a supported format string such as JSON, COCO, or YOLO.
  6. Parse the exported file according to the chosen format; the default JSON export includes tasks, annotations, and annotator metadata.

Known gotchas

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans