Multitenant Application

I am Developing Multitenant Application in which the new tenant will be created on signup.
For that purpose I am doing belowed API call:

curl --request POST
–url https://root_tenant_authority_domain/api/v2/tenants
–header ‘authorization: Bearer ACCESS_TOKEN’
–header ‘cache-control: no-cache’
–header ‘content-type: application/json’
–data ‘{“name”: “customer-1”,“owners”: [“me@email.com”]}’

But the API call returns the following body as Error:
{
“statusCode”: 403,
“error”: “Forbidden”,
“message”: “This operation must be authorized by Auth0”,
“errorCode”: “operation_not_supported”
}
Which type of Authorization do I need to Auto create the tenant?

I’m not sure I completely understand what you are doing, but you cannot create a tenant from the Auth0 management API. You can only get and update settings for an existing tenant. As far as I know the only way to create a new tenant is manually via the management dashboard.

1 Like

Hey @raj.tailor! Yep the only way right now to create new tenant is through the dashboard. Unfortunately there is no way for now to do it via one of the APIs.

Sorry for that!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.