Skip to main content
Contributor I
July 20, 2026
Solved

Bulk Create Events: accepted in the API but can't find in email account

  • July 20, 2026
  • 5 replies
  • 120 views

Here’s the layout I used (which is accepted by the API):

https://developers.klaviyo.com/en/reference/bulk_create_events

 

For some reason, I can’t find the newly created events under the email profiles.  Even after I unsuppressed the user, I can’t find the event after I send that the API accepted.  Is the example layout wrong?

Best answer by KeviSunshine

Hi ​@bpgraves,

The endpoint simply returns a 202, meaning the request wasn’t fully processed before a response was returned (i.e., the request body wasn’t obviously malformed, but it wasn’t processed yet, so there’s no way of knowing if it will work).

Can you share your request body (with any keys and emails/phones/PII removed)? I can review and test out your request body in postman to see if it’s working for me.

 

Let me know!

Kevin.

5 replies

KeviSunshine
Expert Problem Solver III
Expert Problem Solver III
July 21, 2026

Hi ​@bpgraves,

The endpoint simply returns a 202, meaning the request wasn’t fully processed before a response was returned (i.e., the request body wasn’t obviously malformed, but it wasn’t processed yet, so there’s no way of knowing if it will work).

Can you share your request body (with any keys and emails/phones/PII removed)? I can review and test out your request body in postman to see if it’s working for me.

 

Let me know!

Kevin.

Klaviyo Employee
July 21, 2026

Could you paste in the API body (with any email addresses or PII hidden)?

Have you checked the developer logs to see if there are any errors?

https://developers.klaviyo.com/en/docs/monitor_api_usage#review-api-logs

bpgravesAuthor
Contributor I
July 21, 2026

Here’s the request body (no errors returned):

{
  "data": {
    "type": "event-bulk-create-job",
    "attributes": {
      "events-bulk-create": {
        "data": [
          {
            "type": "event-bulk-create",
            "attributes": {
              "backfill": false,
              "profile": {
                "data": {
                  "type": "profile",
                  "id": "string",
                  "attributes": {
                    "first_name": "James",
                    "last_name": "*******",
                    "email": "***"
                  }
                }
              },
              "events": {
                "data": [
                  {
                    "type": "event",
                    "attributes": {
                      "unique_id": "99KF423705-2019",
                      "time": "2019-01-02T12:22:46.7466667-07:00",
                      "value": 0,
                      "metric": {
                        "data": {
                          "type": "metric",
                          "attributes": {
                            "name": "Purchased Vehicle"
                          }
                        }
                      },
                      "properties": {
                        "NewUsed": "New",
                        "VehicleYear": "2019",
                        "VehicleMake": "POLARIS",
                        "VehicleModel": "Z19VDE99BN",
                        "VIN": "*********",
                        "CustomerId": 5784515
                      }
                    }
                  }
                ]
              }
            }
          },
          {
            "type": "event-bulk-create",
            "attributes": {
              "backfill": false,
              "profile": {
                "data": {
                  "type": "profile",
                  "id": "string",
                  "attributes": {
                    "first_name": "Lyleen ",
                    "last_name": "M****",
                    "email": "***"
                  }
                }
              },
              "events": {
                "data": [
                  {
                    "type": "event",
                    "attributes": {
                      "unique_id": "036148-201",
                      "time": "2019-01-02T17:00:00-07:00",
                      "value": 0,
                      "metric": {
                        "data": {
                          "type": "metric",
                          "attributes": {
                            "name": "Purchased Vehicle"
                          }
                        }
                      },
                      "properties": {
                        "NewUsed": "New",
                        "VehicleYear": "2018",
                        "VehicleMake": "YAMAHA",
                        "VehicleModel": "YZ250J2",
                        "VIN": "*********",
                        "CustomerId": 5784505
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    }

GabbyEsposito
Community Manager
Community Manager
July 27, 2026

@bpgraves were you able to get this resolved? 

Gabby
KeviSunshine
Expert Problem Solver III
Expert Problem Solver III
August 3, 2026

Hey ​@bpgraves,

Here’s a working request body - I think the key was removing `{ id: “string” }` from the profile object.

{
"data": {
"type": "event-bulk-create-job",
"attributes": {
"events-bulk-create": {
"data": [
{
"type": "event-bulk-create",
"attributes": {
"backfill": false,
"profile": {
"data": {
"type": "profile",
"attributes": {
"first_name": "Buddy",
"last_name": "Glass",
"email": "REDACTED"
}
}
},
"events": {
"data": [
{
"type": "event",
"attributes": {
"unique_id": "99KF423705-2019",
"time": "2019-01-02T12:22:46.7466667-07:00",
"value": 0,
"metric": {
"data": {
"type": "metric",
"attributes": {
"name": "Purchased Vehicle"
}
}
},
"properties": {
"NewUsed": "New",
"VehicleYear": "2019",
"VehicleMake": "POLARIS",
"VehicleModel": "Z19VDE99BN",
"VIN": "*********",
"CustomerId": 5784515
}
}
}
]
}
}
}
]
}
}
}
}