Hi SriRaghavendran Prabhakaran,
The error you're seeing in the Developer Portal (503 Service Unavailable) usually points to a configuration or authentication issue. Even though the API works from Postman and the APIM test tab, the Developer Portal might have additional requirements. Please try the following:
Check Subscription Key :
Make sure the request includes a valid subscription key. Without it, the Developer Portal might block the request.
API Linked to Product :
In Azure API Management, APIs must be associated with a "Product" for users to get a subscription key. Please verify that your API is included in a product.
Authentication Setup :
If you're using Azure AD or another identity provider, ensure it's properly configured and the token (JWT) is included in your request.
Republish Developer Portal :
If you've made any recent changes to authentication settings, try republishing the portal. This helps apply the changes correctly.
Check for CORS Issues:
If you're calling the API from a browser, Cross-Origin Resource Sharing (CORS) rules could be blocking it. You may need to update the API's CORS policy.
For your reference, please review the following documentations for further clarification.
- Unauthorized errors (401) while invoking APIs
- API Management developer portal - frequently asked questions
Please let me know incase of further queries, I would be happy to assist you.