dansayan
Databricks Partner

To anyone struggling: This was resolved by changing the URL to the endpoint of the rest api documentation url instead of the endpoint invocation url. https://docs.databricks.com/api/azure/workspace/servingendpoints/query

"/serving-endpoints/{name}/invocations"