Skip to main content
Solved

How to get Profile attribute's datatype using API?

  • October 29, 2023
  • 1 reply
  • 63 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'
}
]

 

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