Lock one or more tenants. A vendor token is required for this route, it can be obtained from the vendor authentication route.
- Unlock tenants (batch)
Account Management Overview (1.0)
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.
- EU Regionhttps://api.frontegg.com/tenants/resources/tenants/v1/lock
- US Regionhttps://api.us.frontegg.com/tenants/resources/tenants/v1/lock
- CA Regionhttps://api.ca.frontegg.com/tenants/resources/tenants/v1/lock
- AU Regionhttps://api.au.frontegg.com/tenants/resources/tenants/v1/lock
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/tenants/resources/tenants/v1/lock
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X POST \
https://api.frontegg.com/tenants/resources/tenants/v1/lock \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tenantIds": [
"string"
]
}'- EU Regionhttps://api.frontegg.com/tenants/resources/tenants/v1/unlock
- US Regionhttps://api.us.frontegg.com/tenants/resources/tenants/v1/unlock
- CA Regionhttps://api.ca.frontegg.com/tenants/resources/tenants/v1/unlock
- AU Regionhttps://api.au.frontegg.com/tenants/resources/tenants/v1/unlock
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/tenants/resources/tenants/v1/unlock
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X POST \
https://api.frontegg.com/tenants/resources/tenants/v1/unlock \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tenantIds": [
"string"
]
}'Request
Add metadata to an account (tenant).
If a metadata key already exists, its value is overwritten.
Provide the account (tenant) ID as a path parameter and the metadata object in the request body.
An environment token is required for this route and can be obtained from the environment authentication route.
- EU Regionhttps://api.frontegg.com/tenants/resources/tenants/v1/{tenantId}/metadata
- US Regionhttps://api.us.frontegg.com/tenants/resources/tenants/v1/{tenantId}/metadata
- CA Regionhttps://api.ca.frontegg.com/tenants/resources/tenants/v1/{tenantId}/metadata
- AU Regionhttps://api.au.frontegg.com/tenants/resources/tenants/v1/{tenantId}/metadata
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/tenants/resources/tenants/v1/{tenantId}/metadata
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X POST \
'https://api.frontegg.com/tenants/resources/tenants/v1/{tenantId}/metadata' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"metadata": {
"maximumUsers": 50
}
}'