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

If a category name is taken, sending a POST request to /categories.json returns an error message:

{"errors":["Category Name has already been taken"]}

You could check for this error message.

3 Likes