Skip to main content
This section will illustrate how to get your Auth0 FGA API keys to call the API.

Before you start

You must have an Auth0 FGA account. You can sign up for one on the Auth0 FGA dashboard.

Step by Step

When using the Auth0 FGA SDKs or calling the API you will need:
  • A Store ID
  • A Client ID (not needed for the Playground environment)
  • A Client Secret (not needed for the Playground environment)
In order to get your Store ID and your API keys, follow the steps below:

Management Dashboard

01. Settings page

To obtain your API keys, select “Settings” from the Dashboard’s sidebar menu.Image showing Auth0 FGA settings page

02. Create client and obtain client secret

  1. If you do not have the client secret, you will be presented with the Create Client button. Click this Create Client button. Image showing Auth0 FGA settings page click create client
  2. Enter the client name in the provided text box. This client name will make it easier to identify your clients in the future. Image showing Auth0 FGA create client page
  3. Select the permission set(s) required for this specific client. Click the Create button when done. Image showing Auth0 FGA create client page with selected permissions
  4. A popup window will confirm the client has been successfully created. Make sure to copy the Store ID, Client ID, and Client Secret values. Click Continue once you have saved these values in a secure location. Image showing Auth0 FGA client secret popup
You will not be able to see the client secret again after this step. It will need to be regenerated if it is ever lost or compromised in any way.

03. Setting relevant environment variables

04. Obtain bearer token

If the API is to be invoked via the API Docs viewer or directly instead of through SDKs, you will need to obtain access token for use in later steps: