If you manage your application’s data using APIs, you can register them with Kinde.
- Go to Settings > APIs.
- Select Add API.
- Enter an API name and Audience. The audience is a unique identifier for this API. Often a short code or the URL of the API is used.
- Select Save. The details window for the API opens. You’ll notice that an ID has been created, but it is not editable and neither is the audience. You can copy these details, however.
- To activate this API for your apps, select Applications in the left menu.
- Activate the connection for each application that uses the API.
Our SDKs accept an audience
 parameter. As an example for the React SDK you would use:
<KindeProvider
audience="api.example.com/v1"
clientId="someClientId"
domain="https://kinde.example.com"
>
<MyApp />
</KindeProvider>
When the request is received, Kinde will check that an API with a matching audience has been registered and is enabled for the application with the requested clientId. (In the example above someClientId
). If there is a match it will return the aud
 claim as part of the Access token. For example:
{
aud: ["api.example.com/v1"];
}
When you use this Access token in your product and send it to your product’s API, you can check for the existence of this aud
 claim in the token as part of your verification checks.
- Go to Settings > APIs.
- Select Configure on the relevant API card. The API detail opens.
- Select Applications in the left.
- Activate or deactivate using the switch on the right.
- Select Save.
If you no longer need to have an API registered in Kinde, you can delete it. This action cannot be reversed.
- Go to Settings > APIs.
- On the API you want to delete, select the three dots and then select Delete API. A confirmation window appears.
- To confirm, select Delete API.