Solved

Get email notification when import via API fails

  • 3 October 2023
  • 2 replies
  • 20 views

Hi, is there a way to be notified by email (ideally with report) when import via API fails ?

icon

Best answer by Jordan 4 October 2023, 02:17

View original

2 replies

Userlevel 2
Badge

Hey @quentin12 

 

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