Get import status
client.data.getStatus(stringrequestID, RequestOptionsoptions?): DataGetStatusResponse { createdAt, objectCount, status }
/v1/data/status/{requestId}
Retrieve the status and progress of an import.
Parameters
requestID: string
The request ID returned from the Add endpoint
Returns
Get import status
import Safetykit from 'safetykit';
const client = new Safetykit({
apiKey: process.env['SAFETYKIT_API_KEY'], // This is the default and can be omitted
});
const response = await client.data.getStatus('requestId');
console.log(response.createdAt);
{
"createdAt": "2024-01-15T10:30:00.000Z",
"objectCount": 150,
"status": "INGESTING"
}
Returns Examples
{
"createdAt": "2024-01-15T10:30:00.000Z",
"objectCount": 150,
"status": "INGESTING"
}