API error 500

We can guess, but the best approach is to check logs.

That’s both rails logs and the /logs path on your Discourse instance, only visible to admins.