Generating the subscription key only for onetime use

Raja 1 Reputation point
2022-08-11T06:17:42.66+00:00

Is there a way to generate a API subscription key for a single use? The intention is that once used the subscription key will be unused and cant be reused. So every time an application tries to access an API a fresh and new subscription key will be created.
I checked the MS documentation and cant find if there is an option to configure/set up a subscription key.
The requirement here is to get more restricted access and to use a more secured subscription key.
Please suggest.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
485 questions
Microsoft Partner Center API
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sujithreddy Komma 581 Reputation points Microsoft Employee
    2022-08-11T10:48:21.107+00:00

    Hi,
    There is no such facility from us to generate the subscription key every time.
    you can call the below API to regenerate the subscription keys by using the below Management API.

    https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/subscription/regenerate-primary-key?tabs=HTTP#code-try-0

    1 person found this answer helpful.

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.