Authenticate with env credentials

The environment authentication endpoint uses your clientId and
API key to get a management token with access to all resources in your Frontegg environment. If you have a personal or API token from your Frontegg account, you can also use it to authenticate with this endpoint.

The environment token (JWT) returned when using Frontegg account client credentials API token will have access to all environments, defaulting to the first one (development).

To use a environment token that was generated through the Frontegg portal → Administration and specify which environment to use it for, include the frontegg-environment-id header in each request with the environment's clientId.


vendor

Generate a management token for your environment through the API explorer and use it for consequent management requests as the bearer.

Languages
Servers
EU Region
https://api.frontegg.com/auth/vendor/
US Region
https://api.us.frontegg.com/auth/vendor/
CA Region
https://api.ca.frontegg.com/auth/vendor/
AU Region
https://api.au.frontegg.com/auth/vendor/

Authenticate with env credentials

Request

Authenticate your environment to get a management token for your environment using the clientId and API key.

Bodyapplication/jsonrequired
clientIdstringrequired
secretstringrequired
curl -i -X POST \
  https://api.frontegg.com/auth/vendor/ \
  -H 'Content-Type: application/json' \
  -d '{
    "clientId": "string",
    "secret": "string"
  }'

Responses

Authentication succeeded

Bodyapplication/json
tokenstring
expiresInnumber
Response
application/json
{ "token": "string", "expiresIn": 0 }