APIM workspace api url

Laurens van de Venn 240 Reputation points
2025-08-28T14:00:02.64+00:00

Hi,

I have created an API in API Management workspace.

Base url is having workspace name and looks like a random generated part in the url ending with .gateway.<region>.azure-api.net/<apiname>

Which url can be used to call the api?

Regards,

Laurens van de Venn

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Burkholder 0 Reputation points
    2025-08-28T20:43:22.2266667+00:00

    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.
      Use the full path including the API name and any route defined in your operation. For example: https://abc123.workspace.gateway.westus.azure-api.net/myapi/v1/resource Ensure the API is published and the operation is enabled. Authentication:
      - If your API requires a subscription key, include it in the header:
      
      ```yaml
      Ocp-Apim-Subscription-Key: &lt;your-subscription-key&gt;
      ```
      
         - 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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.