Hi @Shivaji Shitole,
The Azure Bing Spell Check API requires the Ocp-Apim-Subscription-Key
for authentication, and Azure AD authentication is not supported for this API.
Microsoft’s Bing Search APIs, including Spell Check, primarily use API key-based authentication (Ocp-Apim-Subscription-Key
). While some Azure services support Azure AD authentication (OAuth tokens), Bing APIs, including Spell Check, do not currently support Azure AD-based access tokens.
If you need to call the Bing Spell Check API, you must retrieve the subscription key from your Azure Bing Search resource and pass it in the request header as Ocp-Apim-Subscription-Key: {your-subscription-key}
.
Your current approach using OAuth tokens (Azure AD authentication) is not applicable for the Bing Spell Check API. Instead, you should switch to subscription key authentication.
Thank you.