Hi, is there a way to be notified by email (ideally with report) when import via API fails ?
Hey
At this time, API Imports are not something we notify on, but we have an internal feature request logged about this and I’ve added reference to this community post.
Workaround
At this time, you can check on an import status using this endpoint: https://customer.io/docs/api/app/#operation/getImport
Here’s an example of what a failed import would look like when sending a request to that endpoint:
{
"import": {
"id": "5",
"type": "people",
"error": "\"id\" column required (case sensitive)",
"name": "API CSV import fail",
"state": "failed",
"description": "This will fail because there is no column named 'id' in this CSV",
"created_at": 1696378006,
"updated_at": 1696378009,
"rows_to_import": 0,
"rows_imported": 0,
"identifier": "id",
"people_to_process": "all"
}
}
Let us know if you have any other questions about this.
Hi Jordan, thanks for your reply.
I have already implemented this control, but by planning API imports via CRON tasks, it could have made monitoring easier to have a technical notification implemented on the customer side, perhaps soon.
Good day
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.