List import storages

If you have local files that you want to add to Label Studio from a specific directory, you can set up a specific local directory on the machine where LS is running as source or target storage. Use this API request to get a list of all local file import (source) storage connections for a specific project.

The project ID can be found in the URL when viewing the project in Label Studio, or you can retrieve all project IDs using List all projects.

For more information about working with external storage, see Sync data from external storage.

Headers

AuthorizationstringRequired

Header authentication of the form Token <token>

Query parameters

projectintegerOptional
Project ID

Response

projectinteger
A unique integer value identifying this project.
idintegerOptional
typestringOptionalDefaults to localfiles
synchronizablebooleanOptionalDefaults to true
pathstringOptional
Local path
regex_filterstringOptional
Regex for filtering objects
use_blob_urlsbooleanOptional
Interpret objects as BLOBs and generate URLs
last_syncdatetimeOptional
Last sync finished time
last_sync_countintegerOptional
Count of tasks synced last time
last_sync_jobstringOptional<=256 characters
Last sync job ID
statusenumOptional
Allowed values:
tracebackstringOptional
Traceback report for the last failed sync
metamap from strings to anyOptional
Meta and debug information about storage processes
titlestringOptional<=256 characters
Cloud storage title
descriptionstringOptional
Cloud storage description
created_atdatetimeOptional
Creation time