Skip to content
  • SDKs and APIs
  • Kinde API

Register and manage APIs

If you manage your application’s data using APIs, you can register them with Kinde.

Doing this facilitates authentication between your back-end code framework and front-end application where users sign in.

When you register your API with Kinde and link it to a Kinde application, the API will be in the audience (aud) claim of the token. The token can then be used to make a request from the front-end to the back-end, which verifies the token and checks the aud claim.

To register an API in Kinde

Link to this section
  1. Go to Settings > APIs.
  2. Select Add API.
  3. Enter an API name and Audience. The audience (aud) is a unique identifier for this API. Often a short code or the URL of the API is used.
  4. 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.
  5. To activate this API for your apps, select Applications in the left menu.
  6. Activate the connection for each application that uses the API.

Request an audience be added to a token

Link to this section

Our SDKs accept an audience parameter. As an example for the React SDK you would use:

<MyApp />

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: [""];

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.

Activate or deactivate an app from the API

Link to this section
  1. Go to Settings > APIs.
  2. Select Configure on the relevant API card. The API detail opens.
  3. Select Applications in the left.
  4. Activate or deactivate using the switch on the right.
  5. Select Save.

If you no longer need to have an API registered in Kinde, you can delete it. This action cannot be reversed.

  1. Go to Settings > APIs.
  2. On the API you want to delete, select the three dots and then select Delete API. A confirmation window appears.
  3. To confirm, select Delete API.