Zoom inetgration into my application

Currently we are using zoom into our application as a crm integration and we use to authenticate now we are currently working on with where when the meeting ends in the zoom we need a webhook event to be trigeered .

but here the issue is when i authenticate the zoom with my production there will be inetgration entity created with the tokens so i need to pass the inetgration id to the webhook and when the meeting ended event triggeres it should trigger the inetgration id also so that it would be useful for me to take the tokens for the other api (fetch meeting details which needs the acess token) so i need to fetch from my entity but it will have lot of records and there is no mapping between the zoom and my product so inetgration id wpould be good mapping

And also as a local testing webhook event i subscribed to a event with the help and ngrok and im getting the meeting ended event details also but the issue is i need to fetch the meeting details with the id and i need the tokens for that which is in my entity and there is not mapping to fetch that

And also as i mentioned im using ngrok for local testing and its a static but i want a dynamic where i can pass the integration id to the zoom webhook subscription and it will trigger that this event is mapped with this integration like that

so i tried to write an api for that and it throws this error

https://api.zoom.us/v2/webhook/subscriptions

this is the request payload
{

"event_subscription": {

“url”: “https://integrations.api.paperflite.dev/zoom/events?integration_id=test123”,

“events”: [

“meeting.ended”,

“meeting.started”,

“recording.transcript_completed”

]

}

}
but it throws error
{

"code": 2300,

“message”: “This API endpoint is not recognized.”

}

so how to achieve this now please help me please

Hi @Mugesh1,

Zoom doesn’t provide a public API to dynamically create or customize webhook URLs for individual users. The simplest path forward would be to use the static webhook configuration found directly in your Zoom App Marketplace dashboard

You only need to set up one primary Webhook URL for your entire application. When a user completes the OAuth flow to connect their account to your app, you can store their unique Zoom Account ID in your database alongside your internal integration_id.

When a meeting ends, will Zoom send a notification to your static URL that includes the relevant user’s Account ID in the JSON data. At this point, your code can grab the Account ID from the incoming message, look it up in your database, and finds the matching record to get the tokens you need. This should solve your issue while using Zoom’s established pattern of using a static webhook URL.