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.
idinteger or null
typestring or nullDefaults to localfiles
synchronizableboolean or nullDefaults to true
pathstring or null
Local path
regex_filterstring or null
Regex for filtering objects
use_blob_urlsboolean or null
Interpret objects as BLOBs and generate URLs
last_syncdatetime or null
Last sync finished time
last_sync_countinteger or null
Count of tasks synced last time
last_sync_jobstring or null<=256 characters
Last sync job ID
statusenum or null
Allowed values:
tracebackstring or null
Traceback report for the last failed sync
metamap from strings to any or null
Meta and debug information about storage processes
titlestring or null<=256 characters
Cloud storage title
descriptionstring or null
Cloud storage description
created_atdatetime or null
Creation time