Frontegg offers a comprehensive suite of authentication, user management, and security features to streamline identity management and enhance application security. This section provides an overview of all relevant API endpoints, organized into Authentication, Management, and Self-Service categories.
Authentication Endpoints: Enable secure user login, multi-factor authentication (MFA), passwordless options, and social login integrations, allowing for a flexible and robust sign-in experience.
Management Endpoints: Require environment-level authorization and provide full control over SSO (SAML and OpenID Connect) resources, user roles, permissions, and configurations. These endpoints are designed for administrative use, allowing for centralized identity and access management.
Self-Service Endpoints: Accessible with a user token (JWT), these endpoints empower users to manage their SSO connections and other account settings. Users with the necessary permissions can create, update, or delete SSO configurations directly, ensuring they have the tools to manage their access securely and independently.
Each category in this section helps you configure and extend Frontegg’s capabilities, providing the flexibility to manage user identities, authentication protocols, and access controls as per your application’s needs.
https://api.frontegg.com/identity/
https://api.us.frontegg.com/identity/
https://api.ca.frontegg.com/identity/
https://api.au.frontegg.com/identity/
https://{domain}.frontegg.com/identity/
https://api.frontegg.com/identity/resources/migrations/v1/auth0
https://api.us.frontegg.com/identity/resources/migrations/v1/auth0
https://api.ca.frontegg.com/identity/resources/migrations/v1/auth0
https://api.au.frontegg.com/identity/resources/migrations/v1/auth0
https://app-xxx.frontegg.com/identity/resources/migrations/v1/auth0
curl -i -X POST \
https://api.frontegg.com/identity/resources/migrations/v1/auth0 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"domain": "string",
"clientId": "string",
"secret": "string",
"tenantIdFieldName": "string",
"isTenantIdOnUserMetadata": true
}'
The password hash. For SCrypt should include the salt and key seperated by the salt separator
Stringified JSON Hashing config for the migrated password. For SCrypt should be formatted as { saltSeparator, N, r, p, keyLen }. For FirebaseScrypt should be formatted as { memCost, rounds, saltSeparator, signerKey }
phoneNumber can be used either for login with SMS or for MFA, in combination with phoneNumberType
. The required format is area code + number
, without spaces. For example: +16037184056
. Note that the number must be unique
Whether to verify the user as part of the migration process. If this is set to false, another call is required for the verify user API
Role ids of the migrated users. If not provided, the user will be assigned the default roles
https://api.frontegg.com/identity/resources/migrations/v1/local
https://api.us.frontegg.com/identity/resources/migrations/v1/local
https://api.ca.frontegg.com/identity/resources/migrations/v1/local
https://api.au.frontegg.com/identity/resources/migrations/v1/local
https://app-xxx.frontegg.com/identity/resources/migrations/v1/local
curl -i -X POST \
https://api.frontegg.com/identity/resources/migrations/v1/local \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"passwordHash": "string",
"passwordHashType": "bcrypt",
"passwordHashConfig": "string",
"phoneNumber": "string",
"provider": "local",
"metadata": "string",
"verifyUser": false,
"roleIds": [],
"vendorMetadata": "string",
"email": "string",
"tenantId": "string",
"name": "string",
"profilePictureUrl": "string",
"authenticatorAppMfaSecret": "string",
"phoneNumberType": "auth"
}'
{ "id": "string", "email": "string", "name": "string", "profilePictureUrl": "string", "sub": "string", "verified": true, "mfaEnrolled": true, "mfaBypass": true, "phoneNumber": "string", "roles": [ { … } ], "permissions": [ { … } ], "provider": "string", "tenantId": "string", "tenantIds": [ "string" ], "activatedForTenant": true, "isLocked": true, "tenants": [ { … } ], "invisible": true, "superUser": true, "metadata": "string", "vendorMetadata": "string", "createdAt": "2019-08-24T14:15:22Z", "lastLogin": "2019-08-24T14:15:22Z", "groups": [ {} ], "subAccountAccessAllowed": true, "managedBy": "frontegg" }
This route enables you to migrate users in bulk. Expects an array of users
. Each entry must include a user's email
and tenantId
, which specifies that user's parent account. Use the the other fields as needed to store additional information. We recommend using the metadata
property if you need to store custom information in a user's object.
The password hash. For SCrypt should include the salt and key seperated by the salt separator
Stringified JSON Hashing config for the migrated password. For SCrypt should be formatted as { saltSeparator, N, r, p, keyLen }. For FirebaseScrypt should be formatted as { memCost, rounds, saltSeparator, signerKey }
phoneNumber can be used either for login with SMS or for MFA, in combination with phoneNumberType
. The required format is area code + number
, without spaces. For example: +16037184056
. Note that the number must be unique
Whether to verify the user as part of the migration process. If this is set to false, another call is required for the verify user API
Role ids of the migrated users. If not provided, the user will be assigned the default roles
https://api.frontegg.com/identity/resources/migrations/v1/local/bulk
https://api.us.frontegg.com/identity/resources/migrations/v1/local/bulk
https://api.ca.frontegg.com/identity/resources/migrations/v1/local/bulk
https://api.au.frontegg.com/identity/resources/migrations/v1/local/bulk
https://app-xxx.frontegg.com/identity/resources/migrations/v1/local/bulk
curl -i -X POST \
https://api.frontegg.com/identity/resources/migrations/v1/local/bulk \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"users": [
{
"passwordHash": "string",
"passwordHashType": "bcrypt",
"passwordHashConfig": "string",
"phoneNumber": "string",
"provider": "local",
"metadata": "string",
"verifyUser": false,
"roleIds": [],
"vendorMetadata": "string",
"email": "string",
"tenantId": "string",
"name": "string",
"profilePictureUrl": "string",
"authenticatorAppMfaSecret": "string",
"phoneNumberType": "auth"
}
]
}'
{ "migrationId": "string" }