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?