Skip to content
StatusSupportDashboard

Get import status

data.get_status(strrequest_id) -> DataGetStatusResponse
get/v1/data/status/{requestId}

Retrieve the status and progress of an import.

ParametersExpand Collapse
request_id: str

The request ID returned from the Add endpoint

ReturnsExpand Collapse
class DataGetStatusResponse:

Response containing the status and progress of an add request.

created_at: str

ISO timestamp when the request was created

object_count: float

Number of objects in the request

status: Literal["UPLOADING", "INGESTING", "COMPLETE"]

Current processing status of the add request

Accepts one of the following:
"UPLOADING"
"INGESTING"
"COMPLETE"
Get import status
import os
from safetykit import Safetykit

client = Safetykit(
    api_key=os.environ.get("SAFETYKIT_API_KEY"),  # This is the default and can be omitted
)
response = client.data.get_status(
    "requestId",
)
print(response.created_at)
{
  "createdAt": "2024-01-15T10:30:00.000Z",
  "objectCount": 150,
  "status": "INGESTING"
}
Returns Examples
{
  "createdAt": "2024-01-15T10:30:00.000Z",
  "objectCount": 150,
  "status": "INGESTING"
}