API keys overview
Manage your APIs
There are a number of ways to provide your users with programmatic access to your API and applications via Kinde.
You need to register your API with Kinde before you begin.
Here’s the process:
You will want to create a separate M2M application for each user, system, or business who needs to access your API. It is not secure to share access via the same tokens or app keys.
If you need to cut off access to your API for a user, select the three dots menu and select Revoke authorization.
Allow users to manage their own API keys to access your API, including initializing the request, rotating, and deleting keys. Follow this quickstart guide. This is much more secure and preferable than manually copying the app keys from the M2M application and providing them to the third-party.
A third party can request a token using the relevant audience
in the claim, for example:
POST https://yourbusiness.kinde.com/oauth2/token{ "client_id": "XXX", "client_secret": "XXX", "grant_type": "client_credentials", "audience": "http://api.example.com/api"}
Granting access this way means you don’t have to share the Client ID and Secret with anyone.
Follow this guide to quickly generate a test token to test access to your API.