Skip to main content
Contributor I
July 2, 2025
Solved

API-check for null in field - get_profiles

  • July 2, 2025
  • 1 reply
  • 56 views

How can I check for null value in a field when using the ‘get_profiles’ endpoint. 

Chatgpt claims, that it isn’t possible in Klaviyo api (?)

    Best answer by emma.owens

    Hi ​@FBreitenkamp ! 

    Using "null" in a request will result in that value being removed, essentially. So for example, if someone put phone number: "null", it would result in nothing if there was already no phone number, and it would erase it if there was.

    The "null" field is usually used with POST requests, and the Get Profiles is a GET request. So it is true that this isn’t possible with this specific endpoint. 

    I hope this helps, and let me know if you have any follow up questions! 

    1 reply

    emma.owens
    Community Manager
    Community Manager
    July 3, 2025

    Hi ​@FBreitenkamp ! 

    Using "null" in a request will result in that value being removed, essentially. So for example, if someone put phone number: "null", it would result in nothing if there was already no phone number, and it would erase it if there was.

    The "null" field is usually used with POST requests, and the Get Profiles is a GET request. So it is true that this isn’t possible with this specific endpoint. 

    I hope this helps, and let me know if you have any follow up questions!