This error can be attributed to three main causes:
-
Incorrect API Gateway Usage: ensure you're utilizing the appropriate API gateway based on your Frontegg account's location:
- For EU accounts, call
api.frontegg.com
- For US accounts, call
api.us.frontegg.com
- For AU accounts, call
api.au.frontegg.com
- For EU accounts, call
-
Vendor Token values: To guarantee the accuracy of your vendor token, call the Vendor authentication API endpoint and pass your Client ID and API Key from Frontegg Portal ➜ [ENVIRONMENT] ➜ Env Settings page
-
Context Mismatch: Verify that you're not calling
app-xxx.frontegg.com
(user context) instead ofapi.frontegg.com
(vendor context)
Read more on different authentication types here