# /admin/users/1/log\_out route error

**URL:** https://meta.discourse.org/t/admin-users-1-log-out-route-error/152719
**Category:** SSO
**Created:** [May 26, 2020, 1:54am UTC](https://meta.discourse.org/t/admin-users-1-log-out-route-error/152719 "2020-05-26T01:54:52Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 26, 2020, 2:11am UTC](https://meta.discourse.org/t/admin-users-1-log-out-route-error/152719/2 "2020-05-26T02:11:23Z")

</div>

> [@Dev\_Singh](#):
>
> Started POST “/admin/users/2/log\_out?api\_username=dev&api\_key=[FILTERED]”

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](https://meta.discourse.org/t/discourse-api-documentation/22706). 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.

---

_[View the full topic](https://meta.discourse.org/t/admin-users-1-log-out-route-error/152719)._
