Register and manage APIs
SDKs and APIs
To securely connect to Kinde’s API, you need to obtain an access token.
This document describes:
See our other SDK frameworks for additional guidance.
You can also watch a video about connecting and testing the API connection on our YouTube channel here.
You need to have a machine to machine application set up and have the domain details, Client ID and Client secret on hand.
We recommend you do this in a non-production environment first.
If you decide to use Postman, we recommended that you set up a Postman environment.
client_credentials
or whatever best describes what your purpose is.{{business_domain}}.kinde.com/oauth2/token
. Note that even if you use a custom subdomain domain, the access token URL needs to include the kinde.com
domain.audience
to https://[yourdomain].kinde.com/api
(replacing [your domain]). To do this:
audience
key and enter the above URL in the Value field.application/json
.Use the following, but replace <your_domain>
, <client_id>
and <client_secret>
with your own details.
fetch(`${<your_domain>}.kinde.com/oauth2/token`, { method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", }, body: new URLSearchParams({ audience: "<auth_domain>/api", grant_type: "client_credentials", client_id: <client_id>, client_secret: <client_secret>, }), })
See our other SDK frameworks for additional code snippets.
Next (optional): Test the connection to Kinde’s API.