What is the min/max length for an org_id

I am trying to validate the format of the org_id. I am curious to know the current min and max length of the characters after org_id? I read that 20 is the max right now? Not sure about the min.

The minimum length is set to **4 characters
The maximum length is set to **20 characters

Hello @yebuntu.

Welcome to the Auth0 community!

Right now there is not minimum or maximum length for the org_id. Instead, it is set to 20 characters.

It is important to know that org_id being 20 characters is an implementation detail and it might change without notice at any time. We have no guarantees that it’ll always be 20 characters. You shouldn’t make decisions based on its length or shape and they should aways assume that they’ll get an opaque string back as ID which could be in any shape.

I hope this was helpful and if you have more questions don’t hesitate to come back to the community.

Thanks,
Tudor

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