curl --request GET \
--url https://api.qobra.co/v1/imports/{import_id} \
--header 'X-API-Key: <api-key>'{
"data_import": {
"id": "647a13fe875af4b4eb7133c2",
"created_at": "2024-06-25T09:58:32Z",
"launched_at": "2024-06-25T10:03:27Z",
"finished_at": "2024-06-25T10:14:12Z",
"status": "finished",
"progress": 100,
"data_tables_details": [
{
"type": "api",
"status": "finished",
"data_table_key": "companies",
"progress": 100,
"number_of_records": 122,
"error": null
},
{
"type": "api",
"status": "finished",
"data_table_key": "opportunities",
"progress": 100,
"number_of_records": null,
"error": {
"title": "ParsingError",
"description": "Can't parse 'AAAAA' as float for user attribute amount",
"parsing_error_details": [
{
"line_number": 1,
"row": {
"id": "1",
"name": "Great opportunity",
"user": "[email protected]",
"amount": "AAAAA"
},
"details": "ValueError: could not convert string to float: 'AAAAA'"
}
]
}
}
]
}
}Retrieve the status and associated details of an import
curl --request GET \
--url https://api.qobra.co/v1/imports/{import_id} \
--header 'X-API-Key: <api-key>'{
"data_import": {
"id": "647a13fe875af4b4eb7133c2",
"created_at": "2024-06-25T09:58:32Z",
"launched_at": "2024-06-25T10:03:27Z",
"finished_at": "2024-06-25T10:14:12Z",
"status": "finished",
"progress": 100,
"data_tables_details": [
{
"type": "api",
"status": "finished",
"data_table_key": "companies",
"progress": 100,
"number_of_records": 122,
"error": null
},
{
"type": "api",
"status": "finished",
"data_table_key": "opportunities",
"progress": 100,
"number_of_records": null,
"error": {
"title": "ParsingError",
"description": "Can't parse 'AAAAA' as float for user attribute amount",
"parsing_error_details": [
{
"line_number": 1,
"row": {
"id": "1",
"name": "Great opportunity",
"user": "[email protected]",
"amount": "AAAAA"
},
"details": "ValueError: could not convert string to float: 'AAAAA'"
}
]
}
}
]
}
}import_id. Since Qobra record ingestion is performed as a
background task, you’ll have to fetch your import details to verify it went
successfully.Used to identify the import
Success operation
Each import contains information about their status, progress and potential errors. Note that imports stack together, meaning that a single import can show data about several data tables.
Show child attributes
Detailed information for each data table imported
Show child attributes
Origin of the import. All the imports coming from your api calls will be labeled api
api, csv, integration Status of the import
finished, scheduled, started Indicates the progress percentage for the given data table.
Details about the error that have occurred for the data tables
Show child attributes
Error title
Error description
Detail of the error that happened for each line of the import.
Show child attributes
Import line where the error occurred
Row that was input when the error occurred
More details about the stacktrace of the error.
API key used to identify the data table (the one you used to forge the url for record ingestion).
Number of records imported, can be null.
Id of the import
Import creation time
Indicates the progress percentage of your import
Whether an error happened during the import
Status of the import
finished, scheduled, started Import launch time if started, null otherwise
Import finish time if started, null otherwise
Was this page helpful?