Webhook rest api issue

When i am using the api this error is coming. Please help me
“errorMessages”: [
“OAuth 2.0 is not enabled for method: POST /webhooks/1.0/webhook”

Welcome to the Atlassian Developer Community, @yash_123!

In order to help you better, can you clarify your use case and share the request you are doing?

Based on the error message, it seems like you are trying to register a webhook. By any chance are you using POST /webhooks/1.0/webhook instead of POST /rest/webhooks/1.0/webhook?