When you create an API in an Azure API Management (APIM) workspace, the base URL typically includes a unique workspace identifier and follows this format:
https://<workspace-id>.gateway.<region>.azure-api.net/<api-name>
This URL is automatically generated by Azure and is used to call your API directly. Here's how it works:
✅ How to Use the URL to Call Your API
Locate the full base URL in the Azure portal under:
- APIM Workspace → APIs → Your API → Settings
- Look for the Gateway URL or Base URL.
- If your API requires a subscription key, include it in the header: ```yaml Ocp-Apim-Subscription-Key: <your-subscription-key> ``` - Or use OAuth or other configured security mechanisms.
🛠️ Custom Domains (Optional)
If you want a cleaner or branded URL (e.g., https://api.yourdomain.com
), you can configure a custom domain in APIM. This requires:
- DNS setup
- TLS certificate
- Updating APIM gateway settings [1]
Would you like help retrieving your exact workspace API URL or setting up a custom domain for it?
References
[1] Azure API Management Base URL - CLI Command - Stack Overflow