Get CSV import status
GET /projects/:projectid/databases/:dbid/tables/:tblid/import-csv/:importId
Poll a running import.
Returns the progress of an import started by Import a CSV.
Authentication
- Project API key: The credential for everything external. Created in Project Settings, bound to one project, and limited to the scopes it was granted. Format:
proj.<keyId>.<secret>. - Required permission:
databases.readon :dbid.
Path parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
projectid | string | Yes | - | The project id. |
dbid | string | Yes | - | The database id. |
tblid | string | Yes | - | The table being loaded. |
importId | string | Yes | - | The id returned when the import was started. |
Example request
curl -X GET \
-H "Authorization: proj.KEY_ID.SECRET" \
{{BASE_URL}}/projects/{{PROJECT_ID}}/databases/DATABASE_ID/tables/orders/import-csv/IMPORT_ID
Responses
200
The import's current state.
{
"importId": "imp_5kQ2",
"status": "running",
"rowsImported": 12000
}
404
No such import.