# Tenant Validation: What is the workaround auth0 Clients should follow?

**URL:** <https://community.auth0.com/t/tenant-validation-what-is-the-workaround-auth0-clients-should-follow/50883>\
**Category:** Get Help\
**Created:** [October 2, 2020, 1:48pm UTC](https://community.auth0.com/t/tenant-validation-what-is-the-workaround-auth0-clients-should-follow/50883 "2020-10-02T13:48:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineet.gupta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vineet.gupta/32/19361_2.png) [@vineet.gupta](https://community.auth0.com/u/vineet.gupta)\
**Post date:** [October 2, 2020, 1:48pm UTC](https://community.auth0.com/t/tenant-validation-what-is-the-workaround-auth0-clients-should-follow/50883/1 "2020-10-02T13:48:50Z")

</div>

Continuing the discussion from [Tenants are not isolated by domain (URL)?](https://community.auth0.com/t/tenants-are-not-isolated-by-domain-url/19801/3):

I would like to know if on the client side we would like to do some validation if the auth0 tenant exist or not ? what should be the workflow , I couldn’t get the curl or any URL hit at all validating the tenant Name.

they all return 301 , 302 only. This makes it hard for our deployment automation. please help on the tenant validation.

```auto
>> curl -i "http://this-is-fake-tenant.eu.auth0.com/"
HTTP/1.1 301 Moved Permanently
Date: Fri, 02 Oct 2020 13:22:35 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: max-age=3600
Expires: Fri, 02 Oct 2020 14:22:35 GMT
Location: https://amaggi-piku-dev.eu.auth0.com/
cf-request-id: 058b139fae0000a7356c930200000001
Set-Cookie: __cf_bm=3dde7131f413615cd12729ce10f7c3a79d41bc02-1601644955-1800-AXISZuN4+u4hrNq+Z09C+t5Fu32u3cxXkq90mSQqx3dSwWY4oqznMHGPTF70k4pRbib4MDcLNezVc9pF/JM7Ac4=; path=/; expires=Fri, 02-Oct-20 13:52:35 GMT; domain=.eu.auth0.com; HttpOnly; SameSite=None
X-Content-Type-Options: nosniff
Server: cloudflare
CF-RAY: 5dbebbac4e09a735-DUB
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400

```

This doesn’t make sense.

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [October 2, 2020, 9:17pm UTC](https://community.auth0.com/t/tenant-validation-what-is-the-workaround-auth0-clients-should-follow/50883/2 "2020-10-02T21:17:18Z")

</div>

Can you provide more details? Why do you need to validate whether a particular tenant exists or not? I would assume you know your own tenants.

---

<div class="post-metadata">

**Author:** ![vineet.gupta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vineet.gupta/32/19361_2.png) [@vineet.gupta](https://community.auth0.com/u/vineet.gupta)\
**Post date:** [October 4, 2020, 12:52pm UTC](https://community.auth0.com/t/tenant-validation-what-is-the-workaround-auth0-clients-should-follow/50883/3 "2020-10-04T12:52:14Z")

</div>

Thanks @markd for your response. Yes I know my own tenants , the reason I need to know is because I am looking to integrate the tenant creation in our automation flow and part of that is to identify if the tenant exists if not skip the step and if it doesn’t create one and then keep in the same next cycle etc.

But by the looks of the URL and response it seems that Auth0 has no implementation of default errors and you always redirect user to same login page and never show any 404 signs so it makes the automation hard.

In my case I probably can go and list all my tenants and traverse and check each one against the input etc , which sort of makes it a bit lengthy process for a small use case.

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [December 6, 2020, 4:32am UTC](https://community.auth0.com/t/tenant-validation-what-is-the-workaround-auth0-clients-should-follow/50883/4 "2020-12-06T04:32:58Z")

</div>

There’s no way to programatically create new tenants at the moment. Or at least there is no way to do that via an API.
