Skip to main content
October 29, 2023
Solved

How to get Profile attribute's datatype using API?

  • October 29, 2023
  • 1 reply
  • 81 views

I am able to get the Profile attributes using Get profiles API, is there any API to get each attribute’s datatype? 

 

example:-

[
{
attributeName: 'email',
attributeType: 'email'
},
{
attributeName: 'first_name',
attributeType: 'string'
},
{
attributeName: 'created',
attributeType: 'datetime'
},
{
attributeName: 'location',
attributeType: 'object'
}
]

 

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

    Hi @Santhosh!
     

    At this time, there’s no API functionality for retrieving the data type of profile properties. However, I will certainly forward this to our API team as a product request!

    Best,
    Brian

    1 reply

    Brian Turcotte
    Klaviyo Alum
    October 30, 2023

    Hi @Santhosh!
     

    At this time, there’s no API functionality for retrieving the data type of profile properties. However, I will certainly forward this to our API team as a product request!

    Best,
    Brian