# Datapoint — full site content (markdown) Concatenation of every page's markdown twin. Per-page index: https://trydatapoint.com/llms.txt # Datapoint **An API to livestream human preferences.** Datapoint streams 10,000+ human preferences per minute for training and evaluating multimodal models — enough throughput to run online RL, refine model behaviour and evaluate outputs against real people rather than a frozen benchmark. One request reaches 1B+ people across 200+ countries. Datapoint is built for AI teams who need human preference data at training volume — RLHF and DPO pairs, reward-model labels, evals between checkpoints — without standing up a research panel or waiting weeks for results. ## What makes Datapoint different - **Fresh, verified real people — not a panel.** Respondents are recruited through a global ad network, so they match the audience you'd actually sell to, instead of the same professional survey-takers everyone else uses. - **Answers in minutes.** Most studies return in minutes, with a ~15-second median response time. Launch a test at noon, decide by the afternoon. - **Any media.** Compare text, images, audio, and video. If you can render it, you can rank it. - **Pay per response.** No seats, no contracts. New accounts get free credits to run a real test before paying anything. - **An API for human preference.** Python and TypeScript SDKs (and plain curl) let you call `compare()` like any other model — pass two things, get back which one humans prefer and why. ## How it works 1. **Ask.** Describe what you want to learn in plain English, or upload the assets you want compared. 2. **We recruit and run it.** Datapoint turns your question into a study, recruits the right people through its ad network, and enforces quality and quota controls. 3. **Get a ranked answer.** Results stream back in minutes — A/B preferences, ratings, rankings, and multiple-choice — summarized into a clear winner with the reasoning behind it. ## Task types - **Comparison (A/B preference)** — which option do people prefer, head to head. - **Rating** — score options on a scale. - **Ranking** — order a set of options from best to worst. - **Multiple choice** — structured single- or multi-select questions. - **Chains** — multi-step studies that build on previous answers. ## Every answer earns its place in your report 284K verified users. Millions of responses rejected. Every response goes through multiple checks before it reaches you — identity, behavior, attention, bias. Most platforms count responses. We disqualify them. - **Verified identity** — one human, one account. No anonymous drive-bys, no click farms running fifty accounts. - **Behavioral profile** — every responder has a history. Speeders and straight-liners are flagged before & during your study runs, not after. - **Attention & coherence** — intentional, fact based questions rule out users not paying attention. - **Bias control** — order never decides. Option order rotates per respondent, so A can't win just for being shown first. - **Trust score** — every user is profiled extensively and ranked based on a curated trust score. Low trust users never make it to your final report. ## Who uses Datapoint - **Founders & operators** — validate positioning, pricing, packaging, and names before you build or spend. - **Marketers** — pre-test ad creative, messaging, and landing pages before media spend. - **Product teams** — rank features, flows, and UX copy with real target users. - **Ecommerce & CPG** — test creatives, packaging, and PDP copy with real category buyers. - **Healthcare, politics, and newsrooms** — reach verified cohorts for patient, voter, and public-opinion research at speed. - **AI & ML teams** — collect large-scale human preference and rating signal for evaluation and RLHF. ## By the numbers - 100K+ verified real users - 200+ countries - ~15s median response time - Most studies answered in minutes ## Pricing Datapoint is pay-as-you-go — you buy credits and spend them per response, with no seats and no contracts. New accounts get free credits to run a real study before paying anything. - **Scale — $20/month.** The self-serve subscription, with 2,000 credits a month: live preview as you build, granular demographic targeting, AI-generated insight reports, worldwide audience reach, and custom study UI from a single prompt. - **Enterprise — custom.** Unlimited responses and bespoke audiences, custom data residency (US / EU / APAC), SOC 2 Type II / HIPAA / GDPR, SSO/SCIM, audit logs, and a dedicated strategist. Contact sales for a quote. Compare plans at https://trydatapoint.com/#pricing. ## Get started Sign up at https://trydatapoint.com, take the free credits, and run your first test today. Developers can start from the docs at https://trydatapoint.com/docs. ## Contact Questions about pricing, panel coverage, or a specific study? Send us a note from the contact form at https://trydatapoint.com/#contact and a human replies, usually within one business day. To talk it through instead, book a 30-minute call from the same page. --- # Human preference data API > Collect human preference data for RLHF, DPO, reward models, and evals through one API, > with every rater's vote included. Send image, video, audio, or text outputs from your models. Get back chosen and rejected pairs, rankings, and ratings from real people, with agreement scores and every vote behind them. 10,000+ judgments a minute from 1B+ people in 200+ countries. Book a 30-minute call to scope a study: https://calendly.com/akshat-trydatapoint/30min. A panel spec and a price follow within a working day. Trusted by folks at Ideogram, NVIDIA, Pruna AI, Decart, Thinking Machines Lab, Stanford University, and Vanderbilt University. ## Output Every job returns two layers: a verdict per datapoint to train on, and the raw votes behind it for audits or your own aggregation. Create a comparison job for raters in the US and UK aged 18 to 34: ```bash curl -X POST https://api.trydatapoint.com/data-labelling/v1/jobs \ -H "X-API-Key: $DATAPOINT_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "t2i-dpo-batch-01", "instruction": "Which image better matches the prompt?", "task_type": "comparison", "max_responses_per_datapoint": 10, "annotator_filter": { "country": ["US", "GB"], "age_range": ["18-24", "25-34"] }, "datapoints": [{ "media": { "candidates": [ { "url": "dp://b6a1cd3f1234/gen_a.png", "type": "image" }, { "url": "dp://c8f3ae9b5678/gen_b.png", "type": "image" } ] } }] }' ``` `GET /jobs/{id}/results` returns one verdict per datapoint, with a reliability-weighted version beside the raw counts: ```json { "datapoint_index": 0, "votes": { "A": 7, "B": 3 }, "total_responses": 10, "consensus": "A", "confidence": 0.7, "agreement_rate": 0.7, "weighted_votes": { "A": 6.1, "B": 2.4 }, "weighted_consensus": "A", "weighted_confidence": 0.718 } ``` `GET /jobs/{id}/responses` returns one row per vote. Rater IDs are anonymized and stay the same across your jobs: ```json { "datapoint_index": 0, "response": "A", "response_time_ms": 4832, "annotator_id": "anon_8f2cd1a3e9", "annotator_country": "US", "timestamp": "2026-04-21 12:37:18.452731+00:00" } ``` ## Formats | Goal | Task type | What you get | | --------------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------- | | DPO and IPO | Comparison, or a two-item ranking for text | Chosen and rejected pairs, each with a vote margin and confidence | | Reward models | Comparison or ranking | Pairwise outcomes for a Bradley-Terry loss. A ranking yields every implied pair. | | Online RL | Pairwise ranking, comparison or rating | Human rewards per rollout, read back from a stream while the policy trains | | Evals and leaderboards | Comparison | Votes per pair, ready to fit Elo or Bradley-Terry ratings | | Rubric scoring and data filtering | Rating or multiple choice | Scores and labels for grading outputs or filtering training data | | Critiques | Text answer | Written feedback in the rater's own words | Score several criteria in one job, such as realism and motion, and each gets its own verdict plus a weighted composite. Comparisons take image, video, or audio pairs, and image-to-video pairs are judged against a reference image. Text outputs, such as LLM responses, are judged with a two-item ranking or a rating. ## Quality These checks run on every job automatically: - **Identity**: every rater is verified as a real, unique person before their first task. - **Behaviour**: timing and answer patterns flag bots and speed-clickers as they answer. - **Attention**: embedded attention checks catch raters who skim instead of reading. - **Honeypots**: hidden known-answer items drop any rater who gets them wrong. - **Bias**: candidates appear in a shuffled order for each rater. Straight-lining and position bias are caught and removed. - **Reliability scores**: each rater carries a platform-computed reliability score, and every verdict also comes weighted by it. ``` confidence c = (1/n) · Σ 1[r_i = ŷ] weighted_confidence c_w = Σ w_i · 1[r_i = ŷ] / Σ w_i ``` ŷ is the winning answer and w_i is rater i's reliability score. In the sample result, 7 of 10 votes pick A, so c = 0.7. Weighted, A holds 6.1 of 8.5, so c_w = 0.718. ## Raters Tasks reach 1B+ people in 200+ countries through an in-app ad network, so judgments come from everyday consumers, not career labelers. - **Target directly**: country, region, city, or postal area; US area income; gender and age range. Every result breaks down by country, and by gender or age when you target them. - **Screen for anything else**: add a qualifying question, for language, profession, or product use, that ends the task for raters who don't match. Screened-out raters are never billed. Targeting reference: https://trydatapoint.com/docs/api/targeting ## Published data The complete vote records behind the DP-Bench image, video, and speech leaderboards are on Hugging Face under CC-BY-4.0: - [text-2-image-human-preferences-2m](https://huggingface.co/datasets/datapointai/text-2-image-human-preferences-2m): 2M+ votes, 30 models. The record behind Image Bench: a full round-robin of 30 text-to-image models on 500 prompts, 10 votes per pair, each vote carrying the rater's trust score. - [text-to-video-human-preferences-326k](https://huggingface.co/datasets/datapointai/text-to-video-human-preferences-326k): 326K votes, 15 models. The record behind Video Bench: 15 text-to-video models on 314 prompts built to stress motion and physics, 10 votes per pair, with every clip included. - [text-to-speech-human-preferences-315k](https://huggingface.co/datasets/datapointai/text-to-speech-human-preferences-315k): 315K votes, 15 models. The record behind Audio Bench: a full round-robin of 15 text-to-speech models over 300 English prompts in eight voice-agent categories. - All datasets: https://huggingface.co/datapointai - Live leaderboards: https://trydatapoint.com/benchmark/leaderboard ## Pricing Billing is per response collected, not per job created. Volume pricing, invoicing, and enterprise terms are set on a call. - Each job reserves its maximum cost up front and releases whatever it doesn't use. - Targeting adds a per-response surcharge, fixed when the job is created. A quote endpoint prices it before you launch. - Screened-out raters and sandbox dry-runs cost nothing. - New accounts get signup credits to test with. How billing works: https://trydatapoint.com/docs/billing ## Common questions ### What is a human preference data API? An API that collects human judgments of model outputs on demand: which of two outputs is better, how several outputs rank, or how one output scores. With Datapoint you send outputs in a request and get back verdicts with agreement scores plus every rater's vote, ready for RLHF, DPO, reward models, or evaluation. ### How do I get preference pairs for DPO? Run a comparison job over pairs of outputs from your model, or a two-item ranking for text. Each result names the preferred output with its vote margin and confidence, so you can keep only the pairs above an agreement threshold as chosen and rejected examples. ### What is the difference between RLHF and DPO data? Both use pairwise preferences. RLHF trains a separate reward model on them and then optimizes the policy against it, while DPO optimizes the policy on the pairs directly. The format is the same, chosen and rejected pairs, so one job can feed either pipeline. ### How much preference data do I need? It depends on the domain. Narrow DPO fine-tunes often start from a few thousand pairs, while general-purpose reward models use far more. A small pilot on your own outputs measures rater agreement first, and the call is where we size the full run. ### How many raters should judge each pair? Each datapoint collects 10 judgments by default, and you can set a different count per job. Close calls need more votes to separate, so raise the count for evals between similar models, and use the reported confidence to drop ambiguous pairs from training sets. ### How do you control annotation quality? Every rater is verified as a real, unique person, and answers pass timing, attention, known-answer, and bias checks before they count. Every verdict also comes in a reliability-weighted form that weights each rater by a platform-computed reliability score. ### Can I target a specific population of raters? Yes. Filter by country, region, city, postal area, US area income, gender, or age range, and add a screening question for anything else, such as language or profession. Raters who are screened out are never billed. ### How fast do results come back? First responses typically arrive within minutes, most datapoints reach their full vote count within about an hour, and a job with hundreds of datapoints usually finishes in a few hours. Partial results can be read at any point while a job runs. ### How does pricing work? You pay per response collected. Targeting adds a per-response surcharge that is fixed when the job is created, and sandbox dry-runs are free. Volume pricing and enterprise terms are agreed on a call. ### Can AI agents use the API? Yes. The Datapoint MCP server lets agents in Claude Code, Cursor, Codex, and other MCP clients plan, launch, and read preference studies through the same API. ### Do you publish human preference datasets? Yes. The complete vote records behind the DP-Bench image, video, and speech leaderboards are on Hugging Face under CC-BY-4.0, including 2M+ text-to-image votes across 30 models. ## Talk to us Scope your preference data on a 30-minute call: https://calendly.com/akshat-trydatapoint/30min. Bring the modality, the volume, and the population you need judged; a panel spec and a price follow within a working day. Or email sales@trydatapoint.com. ## Learn more - Docs: https://trydatapoint.com/docs (quickstart, task types, full API reference) - Online RL with Streams: https://trydatapoint.com/docs/streams (push rollouts from a training loop, read human judgments back as they finalize) - Modality pages: https://trydatapoint.com/preference-data - Glossary of preference-data terms: https://trydatapoint.com/glossary --- # Streams: online RL with live human feedback > Send image, audio and video rollouts while your model trains. Real people from a pool of > 1B+ raters judge them in real time, and their preferences come back as a continuous > reward stream. Online reinforcement learning needs feedback on what the policy is doing now, at the speed it learns. Streams turns the Datapoint API into that feedback channel: rollouts go out, real people judge them, and rewards stream back while the policy is still training. Results carry trust-weighted fields, so low-trust votes count for less. Attention checks are available on request. ## How it works 1. **Your model generates rollouts.** Your policy produces candidate outputs for the current step (images, audio or video) and pushes them to a stream as comparison pairs (DPO), ranked groups (GRPO), ratings or multiple-choice items. 2. **Real people judge them.** Everyday respondents recruited through a global in-app ad network answer within seconds. 3. **Rewards stream back while it trains.** Each judgment returns as structured data with the quality work already done: agreement scoring and minimum viewing times on every task, with attention checks on request. 4. **The reward model updates, and keeps going.** Human reward arrives continuously and is applied at the next update after it lands, so feedback trails the policy by a few steps instead of describing a checkpoint the model has already moved past. ## Streams in numbers - 10,000+ human preferences per minute - 1B+ raters on tap - 200+ countries represented ## Batch labelling vs. online with Datapoint | | Batch labelling | Online with Datapoint | | ------------------------ | --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | Feedback latency | Days to weeks per labelling round | Seconds per judgment, streamed as each item finalizes | | Which samples get judged | Outputs of a checkpoint the policy has already moved past | Rollouts from your current policy; feedback lands a few steps later, and a per-item deadline (30 s to 1 h) caps how stale it gets | | Update granularity | One reward-model refresh per batch | Human reward arrives continuously and is applied at the next update after it lands | | Reward hacking | Found after the run, in the eval | Caught while it trains, by people a proxy reward cannot stand in for | | Who judges | A fixed annotator workforce | Everyday people, targeted by country, region, city or age range | By the time a labelling round comes back, the policy that produced those samples is gone. Online RL needs feedback on what the model is doing now. ## What comes back Each preference arrives as structured data your training loop can use directly: - **Chosen and rejected, per pair.** Every rollout pair comes back with the rater's pick, ready to use as a reward signal or as a DPO pair. - **Rationales, not just clicks.** Raters can write why they chose, returned with each vote. Use it to debug the policy or to train a reward model that reasons. - **Low-trust votes count for less.** Results carry trust-weighted fields. Agreement scoring and minimum viewing times run on every task, with attention checks on request. - **Agreement on every pair.** Comparison results report agreement rate and confidence, and ranked groups return a full win matrix, so you can tell clear-cut preferences from coin flips and weight them. - **Images, audio & video.** Compare, rate or rank image, audio and video rollouts on the same API, and mix them within one run. - **Elastic, pay per response.** Scale the stream up for a sweep and down between runs. No panel to manage, no workforce to contract. ## Get started Tell us your modality, your step rate and the judgment you need. A research engineer comes back with a panel spec and a price within a working day. - Book a demo: https://calendly.com/akshat-trydatapoint/30min - API docs: https://trydatapoint.com/docs - Human preference data API: https://trydatapoint.com/human-preference-data-api - Glossary (RLHF, DPO, reward models): https://trydatapoint.com/glossary --- # Jobs > Create, inspect, pause, complete, cancel, and retry labelling jobs. All endpoints below are prefixed with `https://api.trydatapoint.com/data-labelling/v1` and require an `X-API-Key` header. ## Create a job Creates a labelling job. Reserves credit from your account up front; the job runs asynchronously. ### Request body , \"reject_at_or_below\": <0 up to but not including 1> }`; a response counts only when the annotator's score on every listed skill is strictly above its threshold. Each skill may appear once. See [Skills and qualification](/docs/skills)." }, { name: "skill_gate_mode", type: '"adaptive" | "enforced"', description: "Defaults to `adaptive` when `skill_requirements` is set; requires `skill_requirements`. `adaptive` reuses an annotator's existing score and re-checks it from time to time; `enforced` assesses every annotator on each required skill for this job." }, { name: "skill_budget_credits", type: "integer ≥ 0", description: "The most this job may spend on assessments of skills you created, reserved on top of the responses. Required when the job requires one of your skills and is charged, and must cover at least one assessment per such skill. Omit it, or send `0`, for shared skills and sandbox jobs. See [Billing](/docs/billing#set-a-budget)." }, { name: "datapoints", type: "array", required: true, description: "Minimum 1. Each item has `media` (task-type-specific) and optional `context`." }, { name: "steps", type: "array of step objects (1–5)", description: "Setting `steps` switches the job into a [chain](/docs/chains): each annotator answers the steps in order, with optional `skip_if` rules to end the walk early. When `steps` is set, the standalone fields `instruction`, `task_type`, `dimensions`, `dimension_weights`, and `response_options` must be omitted." } ]} /> Skills must be active, available to your account, and have assessments for the job's `serving_environment`. Skill settings are fixed at creation: re-using the job's `name` returns the original job without applying new ones. ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "status": "processing", "total_datapoints": 50, "estimated_cost_credits": 2500, "credits_per_response": 5, "credits_per_skill_assessment": 0, "skill_budget_credits": 0, "pricing": { "base_credits_per_response": 5, "demographic_surcharge_credits": 0, "geo_surcharge_credits": 0, "priority": "basic", "credits_per_skill_assessment": 0, "skill_budget_credits": 0, "priority_surcharge_credits": 0, "credits_per_response": 5 }, "skill_gate_mode": null, "skill_requirements": null, "created_at": "None" } ``` `credits_per_response` is the effective per-response rate this job was priced at — your account rate plus any [audience-targeting surcharge](/docs/billing#targeting-surcharges) — fixed at creation for the life of the job. `pricing` breaks that rate down; it is returned on fresh creations only (idempotent replays return the stored rate without the breakdown). `credits_per_skill_assessment` and `skill_budget_credits` are the job's assessment rate and budget, both `0` unless it requires skills you created; `estimated_cost_credits` includes the budget. `skill_gate_mode` and `skill_requirements` echo the job's [skill settings](/docs/skills), or `null` without them. See [assessment pricing](/docs/billing#skill-assessment-pricing). On the initial creation response, `created_at` is the literal string `"None"` — the row's timestamp isn't read back on the create path. An **idempotent replay** (re-POSTing an existing `name`) returns the stored timestamp, and `GET /jobs/{job_id}` always returns the real value. Don't try to parse `created_at` from a first-time create response. ### Error cases | Status | Cause | |---|---| | `400` | Unknown `task_type`; `instruction` and `dimensions` both set; malformed `dimension_weights`; handler-level datapoint rejection (e.g. wrong candidate count); a skill in `skill_requirements` that is unknown, not active, or has no assessments for the job's `serving_environment` (the `detail` names it); a skill listed twice; `skill_gate_mode` or `skill_budget_credits` without `skill_requirements`; a non-zero `skill_budget_credits` on a job with no paid assessments, such as shared skills only or sandbox; or a `skill_budget_credits` below one assessment per skill you created. | | `402` | Insufficient credit. `detail` is an object with `needed_credits` and `available_credits`; `needed_credits` includes `skill_budget_credits`. | | `422` | Field-level request validation failed (`detail` is an array of per-field errors), or request text that did not pass content review (`detail.code` is `content_blocked`). | | `503` | Task dispatch failed (reservation is released automatically — safe to retry with a new `name`), or content review is temporarily unavailable (a `Retry-After` header tells you when to retry), or skill checks are temporarily unavailable for a job with `skill_requirements` (nothing was stored; retry later). | Media that couldn't be reviewed because it was unreadable doesn't fail this call: it surfaces asynchronously as blocked datapoints in `errors[]` on `GET /jobs/{job_id}`. The create-time `invalid_media` error belongs to [`POST /media`](/docs/api/media). See [Errors](/docs/errors) for the full envelope format and the content-review outcomes. --- ## List jobs Returns every job for the authenticated client, most recent first. ### Response (`200 OK`) ```json { "jobs": [ { "job_id": "job_abc123def456", "name": "hello-datapoint", "task_type": "comparison", "status": "completed", "priority": "basic", "serving_environment": "prod", "max_responses_per_datapoint": 10, "api_key_label": "production-server", "created_at": "2026-04-21T12:34:56.123456+00:00", "is_paused": false } ], "total": 1 } ``` `priority` is assigned by Datapoint and is not settable on job creation; it defaults to `"basic"`. Each listed job also includes `skill_gate_mode` and `skill_requirements`, `null` on jobs without [skill requirements](/docs/skills). --- ## Get job status Live counters on a single job: how many datapoints are in flight, completed, or failed. ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "name": "hello-datapoint", "status": "active", "task_type": "comparison", "serving_environment": "prod", "total_datapoints": 50, "processing_datapoints": 12, "ready_datapoints": 38, "completed_datapoints": 30, "failed_datapoints": 0, "blocked_datapoints": 0, "total_responses": 412, "max_responses_per_datapoint": 10, "cost_credits": 2060, "credits_per_response": 5, "refundable_credits": 440, "created_at": "2026-04-21 12:34:56.123456+00:00", "errors": [], "response_options": null, "annotator_filter": null, "is_paused": false } ``` `response_options` and `annotator_filter` are **always present**, returned as `null` when unset rather than omitted. `chain_progress` is the only field that is dropped entirely — it appears only on chain jobs. ### Skill settings and assessment spend The status response also carries these fields: | Field | Meaning | |---|---| | `skill_gate_mode`, `skill_requirements` | The job's [skill settings](/docs/skills), fixed at creation; `null` without them. | | `response_cost_credits` | The part of `cost_credits` from responses. | | `skill_cost_credits` | The part of `cost_credits` from answered assessments of skills you created. | | `credits_per_skill_assessment` | The job's assessment rate, fixed at creation; `0` without paid assessments. | | `skill_budget_credits` | The job's total assessment budget. | | `skill_in_flight_credits` | Budget held for assessments that were served and not yet answered or expired. | | `skill_budget_available_credits` | Budget left for further assessments: `skill_budget_credits` minus spent and in-flight. After the job settles, the unused part has already been returned to your balance. | `GET /jobs/{job_id}/skill-quality` reports [assessment counts per requirement](/docs/api/skills#require-a-skill-on-a-job), and [`POST /jobs/{job_id}/skill-budget`](/docs/billing#increase-a-jobs-skill-budget) raises the budget. ### Error cases | Status | Cause | |---|---| | `404` | Job doesn't exist or belongs to another client. | --- ## Preview a job as an annotator Returns a read-only sample in the same task-bundle contract used by the annotator application. The **Preview** tab on a job in the client dashboard uses this endpoint and the live annotator renderer, so you can refine instructions, labels, media layout, rating scales, and reference media before evaluating the collected results. The sample contains up to 10 resolved standalone tasks, or the first resolved instance of a chain. Both active and completed datapoints are eligible, so the preview remains available after a job finishes. Calling it does not assign work, create a session or response, consume credits, or depend on the job's `serving_environment`. ### Response (`200 OK`) ```json { "data": { "bundle_size": 1, "reward": { "reward_type": "coin", "reward_amount": 1 }, "tasks": [ { "task_id": "11111111-1111-4111-8111-111111111111", "task_type": "rating", "reward": { "reward_type": "coin", "reward_amount": 0 }, "payload": { "prompt": "How accurately does this description match the reference image? A red shoe with white laces.", "scale": [1, 2, 3, 4, 5], "labels": { "1": "Not at all", "5": "Completely" }, "references": [ { "id": "image_1", "image_url": "https://api.trydatapoint.com/data-labelling/v1/media/11111111-1111-4111-8111-111111111111" } ] }, "chain_step": null, "custom_ui_html_url": null } ], "is_chain": null, "chain_length": null } } ``` The response is marked `Cache-Control: private, no-store`. Treat generated `task_id` values as preview-only; they cannot be submitted as assignments. ### Error cases | Status | Cause | |---|---| | `404` | Job doesn't exist or belongs to another client. | | `409` | The job exists, but no datapoint has finished preparation yet. Retry after the job becomes active. | --- ## Get job results Aggregated per-datapoint results. Safe to call while a job is still running. Returns one row per dispatched datapoint that has not failed or been blocked. Datapoints with no responses yet come back with `total_responses: 0` and null consensus fields. On a job with [skill requirements](/docs/skills), assessment answers never appear here or in raw responses, and neither do responses that didn't meet the requirements. ### Query parameters ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "status": "active", "task_type": "comparison", "page": 1, "per_page": 100, "total_results": 50, "results": [ { "datapoint_index": 0, "context": null, "media": [ { "media_id": "b1e2c3d4-5678-90ab-cdef-1234567890ab", "type": "image", "role": "candidates", "url": "/media/v2/b1e2c3d4-5678-90ab-cdef-1234567890ab?sig=...", "thumbnail_url": "/media/v2/b1e2c3d4-5678-90ab-cdef-1234567890ab?preview=1&sig=..." } ], "votes": { "A": 7, "B": 3 }, "total_responses": 10, "consensus": "A", "confidence": 0.7, "agreement_rate": 0.7, "weighted_votes": { "A": 6.1, "B": 2.4 }, "weighted_consensus": "A", "weighted_confidence": 0.718 } ] } ``` Result shape varies by `task_type`. The response declares the fields for every task type; the ones that don't apply to this job come back `null`, and task-type-specific keys are passed through as-is. See the [task types](/docs/task-types) for the exact fields per type. Chain jobs return one entry per datapoint with a per-step `steps` array (and `media: null`); see the [chain result shape](/docs/chains#result-shape). #### `media[]` Each standalone result carries a `media` array describing the assets that were labelled: Chain results carry `media: null`. The `weighted_*` fields carry a second verdict computed alongside the equal-vote fields (`weighted_votes` / `weighted_consensus` / `weighted_confidence`, and their per-task-type analogues): the same tally, weighted by a platform-computed reliability score for each response. On a job with `skill_requirements`, each response's weight is its annotator's lowest score across the job's required skills. For multi-dimension jobs there is also a composite (`weighted_score` / `overall_consensus`) that combines the per-dimension results by the `dimension_weights` you set at creation. --- ## Get raw responses Per-annotator responses, one row per submission. Use this for audits, custom aggregation, or reconstructing which submitted asset was labelled A vs B. ### Query parameters Same `page` / `per_page` as `/results`, except `per_page` is capped at 1000. ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "task_type": "comparison", "page": 1, "per_page": 100, "total_responses": 412, "total_pages": 5, "total_annotators": 96, "responses": [ { "datapoint_index": 0, "response": "A", "response_label": "A", "response_time_ms": 4832, "annotator_id": "anon_8f2cd1a3e9", "annotator_country": "US", "annotator_country_name": "United States", "trust": { "estimate": 0.818, "lower_bound": 0.27 }, "timestamp": "2026-04-21 12:37:18.452731+00:00" } ] } ``` Pagination is grouped by annotator: each page holds whole annotator response sets, so a page can contain more than `per_page` rows. Iterate using `total_pages` rather than computing the page count from `total_responses / per_page`. --- ## Pause a job Stops serving any new tasks for the job. In-flight responses continue to come in. Returns `400` if the job is already terminal (`completed`, `failed`, `blocked`, or `cancelled`) or already paused. ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "is_paused": true, "status": "active" } ``` `is_paused` is a separate flag from `status`. The job's lifecycle status stays the same across pause/resume; only `is_paused` toggles. --- ## Resume a job Re-activates a paused job. Task serving resumes immediately. Returns `400` if the job is already terminal (`completed`, `failed`, `blocked`, or `cancelled`) or is not paused. ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "is_paused": false, "status": "active" } ``` --- ## Complete a job early Ends a running job early. The job flips to terminal `completed` with whatever responses it has collected so far: you're charged for those, the unused reserve is released back to your balance, and, if any responses were collected, its report is generated from the partial data. Unlike cancel, completing dispatches report generation. (A cancelled job stays visible in `GET /jobs` and the dashboard either way; it just never gets a report.) Returns `400` if the job is already terminal, or if it's still `processing` (no datapoints have been dispatched yet). `404` if the job doesn't exist or belongs to another client. ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "status": "completed", "is_paused": true, "cost_credits": 2060, "released_credits": 440 } ``` A response that was in flight at the moment you completed the job may land just after settlement. It is still stored and reflected in the report, but it is never billed — so the final `cost_credits` can end up a little below what you might expect from the response count. This is the same window that natural completion has. --- ## Cancel a job Permanently cancels a job and settles its reserved credits. Serving stops immediately, you're charged only for the responses already collected, and the unused reserve is released back to your balance. Cancellation is **irreversible**, and unlike complete it does **not** generate a report. Returns `400` if the job is already terminal (`completed`, `failed`, `blocked`, or `cancelled`). `404` if the job doesn't exist or belongs to another client. ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "status": "cancelled", "is_paused": true, "cost_credits": 640, "released_credits": 1860 } ``` --- ## Retry failed datapoints Re-queues failed datapoints. Pass `datapoint_indices` to target specific failures; omit the body to retry all. If the job itself had flipped to `failed`, retrying flips it back to `active` and reserves its estimated cost again, so your available balance must cover it; responses collected on the retried datapoints are billed when the job completes, like any other job. Retry **deletes the tasks and every collected response** for the datapoints it re-queues, then resets them to `processing` and dispatches fresh work. For [chain](/docs/chains) jobs the retry set expands to **every sibling step of the affected chain instance**, so any responses already collected on the instance's other steps are discarded too. Only retry when you're prepared to lose the partial data on those datapoints. ### Request body ```json { "datapoint_indices": [3, 7, 12] } ``` ### Response (`200 OK`) ```json { "job_id": "job_abc123def456", "retried": 3, "datapoint_indices": [3, 7, 12] } ``` If no datapoints are failed (or none match the requested indices), the endpoint returns `200` with `retried: 0` and `datapoint_indices: []`. That's not an error. ### Error cases | Status | Cause | |---|---| | `400` | Job was created before retry support was added (no stored request payload). | | `400` | Job is `cancelled`, or a [chain](/docs/chains) instance can't be retried because a sibling step was blocked during content review. | | `400` | Job is `completed` or `blocked` and has failed datapoints to retry. | | `400` | Job is `failed`, reserved credits when it was created, and is more than 7 days old. Create it again with a new `name`. | | `400` | Job is `failed` because some of its datapoints were never queued when it was created. Create it again with a new `name`. | | `402` | Job is `failed` and your available balance can't cover reserving its estimated cost again. `detail` is an object with `needed_credits` and `available_credits`. | | `404` | Job not found. | | `503` | Some datapoints couldn't be queued. They're marked `failed` again, so you can retry them. | ## Next - [Skills](/docs/api/skills): require raters to pass a skill, or create your own from labelled examples - [Media](/docs/api/media): upload reference - [Billing](/docs/billing): balance, checkout, and history - [Survey Planner](/docs/api/survey-planner): natural-language job generation --- # Media > Upload media assets and get back dp:// references. ## Upload media Uploads one or more files and returns a `dp://` reference per file for use in `POST /jobs` datapoints. Each file must be **20 MiB or smaller** (`20,971,520` bytes). This is a fixed platform-wide limit — it applies per file, not per request. Larger uploads are rejected with `413` and the error code `media_too_large`; the response body echoes the ceiling in bytes as `max_bytes`. ### Request Multipart form-data with one or more `files` fields: ``` Content-Type: multipart/form-data --boundary Content-Disposition: form-data; name="files"; filename="video_a.mp4" Content-Type: video/mp4 --boundary Content-Disposition: form-data; name="files"; filename="video_b.mp4" Content-Type: video/mp4 --boundary-- ``` Files in a batch are processed **sequentially**, and there is **no partial rollback**: if the third file in a batch fails, the first two are already stored and keep their references. The whole batch is handled within a single request, so keep batches modest rather than sending very large numbers of files at once. ### Response (`200 OK`) ```json { "media": [ { "filename": "video_a.mp4", "media_id": "b6a1cd3f-1234-4abc-9def-0123456789ab", "media_ref": "dp://b6a1cd3f1234/video_a.mp4", "type": "video", "size_bytes": 2457623, "url": "/media/v2/b6a1cd3f-1234-4abc-9def-0123456789ab?cid=...&exp=1753280000&sig=..." } ] } ``` ### Supported formats | Type | Extensions | |---|---| | Image | `.png`, `.jpg`, `.jpeg`, `.webp`, `.avif`, `.gif`, `.svg`, `.heic`, `.heif` | | Video | `.mp4`, `.webm`, `.mov` | | Audio | `.mp3`, `.wav`, `.ogg`, `.m4a`, `.flac` | The media **type is taken from the file extension**. The request `Content-Type` is only a cross-check: - Extension not in the table above → `400` (`unsupported_media_extension`). Upload one of the supported formats. - Extension and `Content-Type` disagree (e.g. a `.mp4` sent as `image/png`) → `400` (`media_type_mismatch`). - A `Content-Type` the platform doesn't recognise is ignored — the extension still governs. `.svg` uploads are sanitised on the way in (script vectors and unsafe references are stripped). An SVG that can't be parsed is rejected with `400` (`invalid_svg`). Preview frames are generated for **video** only, and not at upload time — the poster frame is produced the first time the video is used in a job. The upload response's `url` always serves the full object; poster frames are served by `thumbnail_url` in `GET /media`. Uploads pass through a content-review step before they're accepted: - Content that doesn't pass review may be rejected with `422` (`content_blocked`), with a generic reason. - Media that can't be processed (corrupt or otherwise unreadable input) → `400` (`invalid_media`). - If review is temporarily unavailable → `503` with a `Retry-After` header. Wait the indicated number of seconds and retry the same upload. ### Example ```bash curl -X POST https://api.trydatapoint.com/data-labelling/v1/media \ -H "X-API-Key: $DATAPOINT_KEY" \ -F "files=@video_a.mp4" \ -F "files=@video_b.mp4" ``` ```python import requests, os with open("video_a.mp4", "rb") as a, open("video_b.mp4", "rb") as b: r = requests.post( "https://api.trydatapoint.com/data-labelling/v1/media", headers={"X-API-Key": os.environ["DATAPOINT_KEY"]}, files=[("files", a), ("files", b)], ) r.raise_for_status() refs = [item["media_ref"] for item in r.json()["media"]] ``` ```javascript import fs from "node:fs"; const form = new FormData(); form.append("files", new Blob([fs.readFileSync("video_a.mp4")]), "video_a.mp4"); form.append("files", new Blob([fs.readFileSync("video_b.mp4")]), "video_b.mp4"); const res = await fetch( "https://api.trydatapoint.com/data-labelling/v1/media", { method: "POST", headers: { "X-API-Key": process.env.DATAPOINT_KEY }, body: form, } ); const { media } = await res.json(); ``` ### Error cases | Status | Error code | Cause | |---|---|---| | `400` | `unsupported_media_extension` | The file extension isn't supported. | | `400` | `media_type_mismatch` | The extension and the declared `Content-Type` disagree. | | `400` | `invalid_svg` | An `.svg` upload couldn't be parsed. | | `400` | `invalid_media` | The file couldn't be processed (corrupt or unreadable). | | `401` | — | Missing or invalid API key. | | `413` | `media_too_large` | A file exceeds the 20 MiB limit; the body carries `max_bytes`. | | `422` | `content_blocked` | The file didn't pass content review. | | `429` | — | Rate limit exceeded. | | `503` | — | Content review is temporarily unavailable; retry after `Retry-After` seconds. | ## List media Lists your account's media — both files you uploaded through `POST /media` and media the platform fetched from direct URLs in your jobs — newest first. Paginated. ### Query parameters ### Response (`200 OK`) ```json { "media": [ { "media_id": "b6a1cd3f-1234-4abc-9def-0123456789ab", "filename": "video_a.mp4", "media_ref": "dp://b6a1cd3f1234/video_a.mp4", "type": "video", "size_bytes": 2457623, "moderation_status": "allowed", "created_at": "2026-07-23T18:11:04Z", "url": "/media/v2/b6a1cd3f-1234-4abc-9def-0123456789ab?cid=...&exp=1753280000&sig=...", "thumbnail_url": "/media/v2/b6a1cd3f-1234-4abc-9def-0123456789ab?cid=...&exp=1753280000&sig=...&preview=1" } ], "total": 1, "page": 1, "per_page": 50 } ``` Each item in `media`: A `dp://` reference resolves only for the account that uploaded it, and only on an exact match — you can't reference another account's media. Uploads **cannot be deleted through the API**. When you reference an uploaded file in a job by its `dp://` ref, its media type is already known from the upload, so you don't need to send a `type`. For datapoints that point at a direct URL, `type` is inferred from the URL's file extension; send `type` explicitly when the URL has no recognisable extension (e.g. query-string or content-negotiated URLs), otherwise the job is rejected with `400` (`unsupported_media_extension`). ## Next - [Media handling concepts](/docs/media): how `dp://` refs are served end-to-end - [Task types](/docs/task-types): where to plug media refs into datapoints --- # Skills > Create your own skill from labelled examples and require raters to pass it before their votes count. A skill is a set of questions with known answers. A job or stream that requires a skill gives each rater a short assessment from that set first, and only counts votes from raters whose score is above your threshold. You can require a shared skill, or create your own from examples you have labelled yourself. Your own skills are private to your account. For how modes, scores, and qualification behave, see [Skills and qualification](/docs/skills). Every endpoint below is under `https://api.trydatapoint.com/data-labelling/v1`, takes your API key in the `X-API-Key` header and counts against your key's [rate limit](/docs/rate-limits). ## Create a skill in three calls 1. `POST /skills` to name the skill. You get back its `skill` identifier, which looks like `tenant::`. 2. `POST /media` to [upload](/docs/api/media) any images, videos or audio the examples use. 3. `POST /skills/{skill}/calibration-sets` with 20 to 500 labelled examples. The set is checked automatically and a `draft` skill becomes `active` in the same call. There is no manual review. You can then name the skill in `skill_requirements` on a [job](#require-a-skill-on-a-job) or a [stream](/docs/api/streams#skill-requirements). ```python import requests API = "https://api.trydatapoint.com/data-labelling/v1" HEADERS = {"X-API-Key": "dp_..."} skill = requests.post( f"{API}/skills", headers=HEADERS, json={"name": "Artifact spotting", "description": "Finds the image with a rendering artifact."}, ).json()["skill"] # labelled: [(first_ref, second_ref, "image_1" or "image_2"), ...], refs from POST /media. examples = [ { "media": { "candidates": [ {"url": first, "type": "image"}, {"url": second, "type": "image"}, ] }, "gold_submission": {"choice": answer}, "provenance": {"source": "Labelled in house", "license": "client-owned"}, } for first, second, answer in labelled ] created = requests.post( f"{API}/skills/{skill}/calibration-sets", headers=HEADERS, json={ "name": "Artifacts v1", "task_type": "comparison", "instruction": "Which image has a visible artifact?", "examples": examples, }, ) created.raise_for_status() ``` ## Create a skill ### Request body ### Response (`201 Created`) The [skill object](#the-skill-object), with `status: "draft"`. A draft skill can't be required yet; it becomes `active` when its first set is accepted. ## Add labelled examples Adds a set of examples to one of your skills. You can add more sets later; raters are assessed on examples drawn from all of the skill's active sets that can serve in the job's environment. Each rater sees each example at most once, so larger sets support more re-checks. ### Request body Media in an example must be a `dp://` reference in `url`, or a `media_id`, from your own [`POST /media`](/docs/api/media) uploads, and it must have passed content review: `{ "url": "dp://..." }` or `{ "media_id": "..." }`. A public `https://` URL is a `400`. The `media` shapes are on the [comparison](/docs/task-types/comparison) and [multiple choice](/docs/task-types/multiple-choice) pages. ### Gold answers | Task type | `gold_submission` | Notes | |-----------|-------------------|-------| | `comparison` | `{"choice": "image_1"}` | The first entry in `candidates` is `image_1`, `video_1` or `audio_1` by its uploaded media type; the second ends in `_2`. Raters may see them in either order. Any `id` or `type` you set on a candidate is ignored. | | `multiple_choice`, `mode: "single"` | `{"choice": "