By default, Mattermost does not allow team name URLs that could be used to spoof service names.
For example, you can’t name your team admin, test, or api. Try a different name or grep through the code for these reserve words to change the functionality.