/admin/users/1/log_out route error

You need to set the Api-Key and Api-Username in the request headers. Have a look at the curl example that’s near the top of this topic: Discourse API Documentation. Make sure to use a dash (-) and not an underscore (_) for the field names. For example api-key will work for the field name, api_key will not work.

2 Likes