Import data as labeling tasks in bulk using this API endpoint. You can use this API endpoint to import multiple tasks.
One POST request is limited at 250K tasks and 200 MB.
Note: Imported data is verified against a project label_config and must
include all variables that were used in the label_config. For example,
if the label configuration has a $text variable, then each item in a data object
must include a “text” field.
POST requests
<hr style=“opacity:0.3”>
There are three possible ways to import tasks with this endpoint:
1. POST with data
Send JSON tasks as POST data. Only JSON is supported for POSTing files directly.
Update this example to specify your authorization token and Label Studio instance host, then run the following from
the command line.
2. POST with files
Send tasks as files. You can attach multiple files with different names.
- JSON: text files in JavaScript object notation format
- CSV: text files with tables in Comma Separated Values format
- TSV: text files with tables in Tab Separated Value format
- TXT: simple text files are similar to CSV with one column and no header, supported for projects with one source only
Update this example to specify your authorization token, Label Studio instance host, and file name and path,
then run the following from the command line:
3. POST with URL
You can also provide a URL to a file with labeling tasks. Supported file formats are the same as in option 2.