Hello, I am a developer integrating Klaviyo in our app.
I am looking for the right way to know if a user has uninstalled the link to our app from Klaviyo’s side.
What I was going to do:
requesting for a new refresh token and if I get an error that it has been revoked, then I can remove it.
This solution looks a bit “hacky” and might not be the best way to refresh the status of the integration.
I guess the best way would be to have a webhook for that, or maybe an endpoint to call. But I can’t find neither of those in the documentation :/
Should I proceed with my hacky solution, or do you have a better solution to suggest?
Fyi, currently using: https://github.com/klaviyo/klaviyo-api-node
Hi Jeremy -
Would the status of mobile push consent meet this need? That is returned from the Get Profile/Get Profiles endpoint, like:
"mobile_push": {
"marketing": {
"can_receive_push_marketing": true,
"consent": "SUBSCRIBED",
"consent_timestamp": "2023-02-21T20:07:38+00:00"
}
}
You do need to request “subscriptions” in the additional-fields parameter.
Hi Ryan,
Thanks for answering!
I guess that might work, I’ll test it.
=> My question was not to know if a profile disabled notifications but if an integration has been removed.
See this page: https://www.klaviyo.com/integrations
In the end, I might just need an endpoint to ping klaviyo and know if a token has been revoked or not.
I think your solution does make sense in the meantime.
Tagging in
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.