I have ended up with 2 subscriptions sending me webhook events. I don't know how to delete the old one.
The scenario:
User A ran the OAuth flow. My app is using that user for authentication. The app created a webhook subscription to /telephony/session events for some extensions.
Something happened to my refresh token. So User B logs into my app and runs the OAuth flow. So now my app is using an access token for User B. The app checks the subscriptions to make sure they are up to date. The app sees no subscriptions for User B so it creates a new subscription. At the same time the subscription from User A is still sending webhook events. Now my app is receiving duplicate events.
How do I delete the subscription for User A?
© 1999-2024 RingCentral, Inc. All rights reserved.
Privacy Notice