Check whether a category name is available. API dry-run / custom slug?

I’d have the same problem with trying to fetch /c/{slug}.json. I can’t reliably predict what slug will be produced from a given name, other than running it through the Discourse Slug module, which is only possible by creating a category and check the output. But then, side-effect. That’s why I’m looking for a side-effect-free way to check the availability of a category name/slug.

Otherwise, I see that I can in fact choose a slug when creating a category but it’s not documented, and the check wether a category name is available or not is done on the name and the slug. Is there a good reason to do so? In my case, most of the categories would be hidden and only accessible from direct link, so it’s not a big deal if multiple categories have the same name (but different slugs).