Skip to main content
Solved

Get email notification when import via API fails


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

Best answer by Jordan

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. 😊

View original
Did this topic help you find an answer to your question?

2 replies

Jordan
  • Novice
  • 40 replies
  • Answer
  • October 4, 2023

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. 😊


  • Author
  • Novice
  • 2 replies
  • October 4, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings