Get all scheduled imports
GET
/imports
const url = 'http://localhost:8000/api/v1/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 http://localhost:8000/api/v1/imports \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful response
Media type application/json
Array<object>
object
id
ID of the file import
integer
name
Name of the file to import
string
file_type
Type of the file to import
string
progress
Current import progress
integer
num_rows
Total number of records to import
integer
failed_imports_count
Total number of failed imports
integer
Example generated
[ { "id": 1, "name": "example", "file_type": "example", "progress": 1, "num_rows": 1, "failed_imports_count": 1 }]Unauthorized
Server error