I’m new to Klayviyo,
I have problem that I tried to use API to create event “Subscribed to email marketing”.
API has worked, return 202 and this created new profile, also add event to profile. But Subscription details status still “Never subscribed”.
Is there any way to change Subscription details through API call.
{
"data": {
"type": "event",
"attributes": {
"properties": {
"event":"Subscribed to email Marketing",
"email_address": "test@gmail.com"
},
"metric": {
"data": {
"type": "metric",
"attributes": {
"name": "Subscribed to email Marketing"
}
}
},
"profile": {
"data": {
"type": "profile",
"attributes": {
"email": "test@gmail.com",
"phone_number":"+12345698901",
"first_name": "test",
"last_name": "account"
}
}
},
"unique_id": "4b5d3f33-2e21-4c1c-b392-2eae2a74920e"
}
}
}