Skip to main content
Contributor I
October 27, 2024
Solved

Unexpected 400 Bad Request responses from Klaviyo API despite valid data

  • October 27, 2024
  • 4 replies
  • 827 views

We are receiving quite a few 400 Bad Request responses from Klaviyo’s API while using `/api/event-bulk-create-jobs`. Although we’re not sharing any phone numbers, the response still states, “The phone number provided either does not exist or is ineligible to receive SMS.” This occurs even when a correct `_kx` parameter or a valid email address is provided.

We are sharing events for business using our software, and there seems to be no way to reach someone on Klaviyo’s team to look into this.

    This topic has been closed for replies.
    Best answer by chloe.strange

    @Asad Hazara

    We’ll be following up individually on your unique situation. 

    ~Chloe

    4 replies

    ArpitBanjara
    Principal User II
    Principal User II
    October 27, 2024

    Hey @Asad Hazara 

    The 400 Bad Request error you're experiencing is unusual, especially since you're not dealing with SMS-related data.

    Can you make sure a few things and see if that fixes your issue?

    -Ensure you're using either email OR external_id consistently. Don't mix identification methods within the same batch

    -Verify your API headers are correct. Double-check the API revision date and ensure your API key has sufficient permissions

    -for API request optimisation - Keep batches under 1000 events. Add delays between bulk requests

    If this still doesn’t work, can you try contacting Klaviyo support here?

    I hope this helps and thank you for posting your question here in the community.

    Cheers

    Arpit

    Arpit Banjara - Lead Email Marketing Specialist at Flowium
    Contributor I
    October 27, 2024

    Hi Arpit, first of all, thank you for your response.

    In my case, this error is thrown even when I only use a correct `_kx` parameter without including an email or `external_id`, so it doesn’t seem related to those profile attributes. This happens occasionally, so it’s likely an issue on Klaviyo’s side. It seems that another issue is triggering this specific error instead of the actual cause. Just to clarify, thousands of batches are sent in the same way and are accepted, so it can’t be the headers, as they are identical for all requests. Also, some failing batches contain only a single event. None of the failing batches are near 1,000 events.

    Unfortunately, I can’t contact Klaviyo directly since I’m not a Klaviyo subscriber. We provide software to over 15,000 stores, which use it primarily for ad platforms, and we recently launched Klaviyo. I’ve opened this thread hoping someone at Klaviyo can look into this matter.

    ArpitBanjara
    Principal User II
    Principal User II
    October 28, 2024

    Hey @kaila.lawrence @stephen.trumble @chloe.strange - can you please help them with their query?

    thanks

    Arpit Banjara - Lead Email Marketing Specialist at Flowium
    chloe.strange
    Community Manager
    Community Manager
    November 21, 2024

    @Asad Hazara

    We’ll be following up individually on your unique situation. 

    ~Chloe