Delete a sub-account. A user or vendor token is required for this route. A user token can be obtained after user authentication.
Account Management Overview
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.
Download OpenAPI description
Languages
Servers
EU Region
https://api.frontegg.com/tenants/
US Region
https://api.us.frontegg.com/tenants/
CA Region
https://api.ca.frontegg.com/tenants/
AU Region
https://api.au.frontegg.com/tenants/
Frontegg sub-domain for use with user tokens
https://{domain}.frontegg.com/tenants/
- EU Regionhttps://api.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}/hierarchy-settings
- US Regionhttps://api.us.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}/hierarchy-settings
- CA Regionhttps://api.ca.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}/hierarchy-settings
- AU Regionhttps://api.au.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}/hierarchy-settings
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}/hierarchy-settings
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X PUT \
'https://api.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}/hierarchy-settings' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{}'- EU Regionhttps://api.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}
- US Regionhttps://api.us.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}
- CA Regionhttps://api.ca.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}
- AU Regionhttps://api.au.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X DELETE \
'https://api.frontegg.com/tenants/resources/sub-tenants/v1/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- EU Regionhttps://api.frontegg.com/tenants/resources/hierarchy/v1
- US Regionhttps://api.us.frontegg.com/tenants/resources/hierarchy/v1
- CA Regionhttps://api.ca.frontegg.com/tenants/resources/hierarchy/v1
- AU Regionhttps://api.au.frontegg.com/tenants/resources/hierarchy/v1
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/tenants/resources/hierarchy/v1
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X GET \
https://api.frontegg.com/tenants/resources/hierarchy/v1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'frontegg-tenant-id: string'