Skip to main content
Contributor I
January 17, 2023
Solved

POST for Updating Profiles

  • January 17, 2023
  • 2 replies
  • 205 views

Hi there,

I’m currently using the legacy API (https://a.klaviyo.com/api/identify) to use a webhook to update Klaviyo profiles.

 

However, with the legacy API being end-of-lifed in early 2024, I was wondering whether there was going to be a POST equivalent in the new API?

Currently, the only equivalent I can see in the new API (see below link) performs a PATCH request. But the Klaviyo documentation states only POST requests work with Klaviyo webhooks

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

 

I’m a marketer, not a developer, so not entirely sure if they are the same thing. But rather than trying to hack my way through, I just wanted to see if a Klaviyo webhook is possible with even when it is a PATCH request:

https://a.klaviyo.com/api/profiles/{id}/

 

If not, will there be a POST equivalent in the future?

    This topic has been closed for replies.
    Best answer by Brian Turcotte

    Hi @Wei Tan and welcome to the Community!

     

    Thanks for the great question - I reached out to Engineering and it turns out there has already been some internal discussion about this.

     

    While there isn’t currently support for non-POST requests as you rightfully deduced, a workaround for your use case could be to use the Create Client Profile endpoint, which allows you to either create or update an existing profile using a POST request.

     

    I hope this helps, and thanks for using the Community!

    - Brian

    2 replies

    Brian Turcotte
    Klaviyo Alum
    January 17, 2023

    Hi @Wei Tan and welcome to the Community!

     

    Thanks for the great question - I reached out to Engineering and it turns out there has already been some internal discussion about this.

     

    While there isn’t currently support for non-POST requests as you rightfully deduced, a workaround for your use case could be to use the Create Client Profile endpoint, which allows you to either create or update an existing profile using a POST request.

     

    I hope this helps, and thanks for using the Community!

    - Brian

    Wei TanAuthor
    Contributor I
    January 17, 2023

    Hi @Brian Turcotte

    Oh thanks, I’ll definitely checkout that endpoint and see how it works :)

     

    Cheers,

    Wei