APIM - How to pass subscription key to API on each operation call?

juni dev 336 Reputation points
2022-11-06T21:38:25.353+00:00

Hi,

I have an API that will be invoked via APIM
I need to receive on my API the identification of the caller App. I was requested to do this by capturing the APIM subscription Key.
How can I pass the subscription Key from APIM to my invoked API and capture it there?

Help is really appreciated

Thanks,
JD

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

Accepted answer
  1. JananiRamesh-MSFT 24,111 Reputation points
    2022-11-08T17:58:04.513+00:00

    Hi @juni dev Thanks for reaching out. From the description I understand that you wanted to capture the APIM subscription key at your backend correct me if i am wrong here,

    If yes, please note that subscription key is by designed to be sent via header/query param to the backend from APIM as shown below

    258358-image.png

    Reference: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector

    let me know incase of further queries, I would be happy to assist you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful