Frontegg is built with multi-tenancy in mind, allowing the creation and management of multiple accounts (tenants) within an environment. This section provides an overview of relevant API endpoints, organized into Management and Self-Service categories, supporting the creation of accounts, hierarchies, and sub-accounts.
Management Endpoints: Require environment-level authorization and offer full control over resources, including SSO (SAML and OIDC) configurations, account hierarchies, and sub-accounts.
Self-Service Endpoints: Accessible with a user token (JWT), enabling users with the appropriate permissions to create, update, and delete sub-accounts from ah hierarchy.
https://api.frontegg.com/tenants/
https://api.us.frontegg.com/tenants/
https://api.ca.frontegg.com/tenants/
https://api.au.frontegg.com/tenants/
https://{domain}.frontegg.com/tenants/
https://api.frontegg.com/tenants/resources/hierarchy/v1
https://api.us.frontegg.com/tenants/resources/hierarchy/v1
https://api.ca.frontegg.com/tenants/resources/hierarchy/v1
https://api.au.frontegg.com/tenants/resources/hierarchy/v1
https://app-xxx.frontegg.com/tenants/resources/hierarchy/v1
curl -i -X GET \
https://api.frontegg.com/tenants/resources/hierarchy/v1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'frontegg-tenant-id: string'
https://api.frontegg.com/tenants/resources/hierarchy/v1/parents
https://api.us.frontegg.com/tenants/resources/hierarchy/v1/parents
https://api.ca.frontegg.com/tenants/resources/hierarchy/v1/parents
https://api.au.frontegg.com/tenants/resources/hierarchy/v1/parents
https://app-xxx.frontegg.com/tenants/resources/hierarchy/v1/parents
curl -i -X GET \
https://api.frontegg.com/tenants/resources/hierarchy/v1/parents \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'frontegg-tenant-id: string'
https://api.frontegg.com/tenants/resources/hierarchy/v1/tree
https://api.us.frontegg.com/tenants/resources/hierarchy/v1/tree
https://api.ca.frontegg.com/tenants/resources/hierarchy/v1/tree
https://api.au.frontegg.com/tenants/resources/hierarchy/v1/tree
https://app-xxx.frontegg.com/tenants/resources/hierarchy/v1/tree
curl -i -X GET \
https://api.frontegg.com/tenants/resources/hierarchy/v1/tree \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'frontegg-tenant-id: string'