Hi all, I’m working to send SMS consent texts programmatically, however I’m seeing some unexpected behavior. If a profile has already consented to SMS, and the profile subscribes again, they receive a second opt in SMS message. E.g. hitting the subscribe to list endpoint will sent duplicate SMS consent messages, even if the customer has already consented to SMS. The way I’d expect this to work, is if the customer has already consented to receiving SMS messages, they aren’t sent a second consent text if the subscribe endpoint is hit.

https://a.klaviyo.com/api/v2/list/LIST_ID/subscribe?api_key=PRIVATE_KEY
{
"profiles": [
{
"email": "george.washington@klaviyo.com"
},
{
"phone_number": "+13239169023",
"sms_consent": true
}
]
}
A workaround for this I could implement would be fetching the profile before the subscribe endpoint is hit, to see if they’ve already consented to SMS, and if so, don’t pass in the sms_true field, however I’m unclear on how I’d fetch a klaviyo profile from an email (only from a klaviyo profile id). Is there some way to get a Klaviyo profile id from an email?