In this tutorial, you will learn step by step to create new client application and obtain client credentials to access an API in Mule.
Registering client application is essentials to manage contracts between you and your clients. Especially when you are in subscription based contracts.
Step 1: Go to Anypoint Exchange and open your API.
Step 2: In the API dashboard, click on three dots and click on Request access.

Step 3: In Request access windows,
- Select the API instance. Make sure to select the correct environment instance as you will need to register client application for each and every environment.
- Click on Create a new application
Step 4: In new application window,
- Name your client application and click on Create.

Step 5: In Request access window, click on Request access.

Step 6: Note down your client credentials.

That’s it! Now we have registered our client application and now client can access our API using these credentials.
Remember, client can access only the development instance not other instances (SIT, UAT or PROD).
To give an access to other instances, please repeat the same procedure but select different instances.
Step 7: Now to verify the contract, go to API Manager, click on your API and then click on Contracts.

You can see the list of client applications that we registered to this API instance. There you can simply revoke contract with client, once you finished your contract.
For example, If the contract between you and your client ends, then you can simply revoke your client access so that your client can’t access your API.
Forgot to note down the client credentials?
Sometimes you may forget to note down the client credentials or a new developer joined your team and asked you share the credentials.
In such cases, to retrieve the credentials, go to API Manager, click on Client Applications and select your client app (vv-pega-client-app).

That’s simple!
Conclusion
Registering client application is essentials to manage contracts between you and your clients. Especially when you are in subscription based contracts.
We hope this tutorial helped you to understand the process of process of registering client application and obtaining the client credentials to access an API.
Please do share it with your friends and don’t forget to follow us on Facebook, Twitter and LinkedIn. Visit our MuleSoft Hub for more tutorials and updates.