List imports
const url = 'https://work.optidata.cloud/api/drives/1/imports';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://work.optidata.cloud/api/drives/1/imports \ --header 'Authorization: Bearer <token>'Every import of the tenant, newest first. An import is a bookkeeping record that tracks how far a bulk transfer of an external folder tree has progressed; the files themselves are created through the normal node and upload endpoints.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Numeric id of the drive. Read it from GET /drives/config.json.
Responses
Section titled “ Responses ”The imports.
Progress bookkeeping for a bulk import of an external file tree.
object
Path of the imported tree on the source system.
Example
[ { "origin_path": "D:\\Archive\\2025", "status": "waiting_start" }]Missing, malformed or expired authentication key.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}The resource does not exist, or does not belong to the given drive.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "No query results for model [App\\Models\\Node] 99999999"}Rate limit exceeded. Retry after the window resets.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Too Many Attempts."}