Skip to main content
Solved

POST for Updating Profiles

  • January 17, 2023
  • 2 replies
  • 148 views

Forum|alt.badge.img+3

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?

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

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • 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


Forum|alt.badge.img+3
  • Author
  • Contributor I
  • 1 reply
  • January 17, 2023

Hi @Brian Turcotte

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

 

Cheers,

Wei