# Logout POST Request

**URL:** https://meta.discourse.org/t/logout-post-request/192601
**Category:** SSO
**Created:** [June 3, 2021, 8:39pm UTC](https://meta.discourse.org/t/logout-post-request/192601 "2021-06-03T20:39:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Bio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bio/32/198067_2.png) [@Bio](https://meta.discourse.org/u/Bio)
#### Post date: [June 3, 2021, 9:41pm UTC](https://meta.discourse.org/t/logout-post-request/192601/2 "2021-06-03T21:41:12Z")

</div>

I’ve figured it out, so I will leave the link to the other forum here so others like me can have an easier time trying to implement this. It turns out that the other topics that suggest you put your api\_key and api\_username in the URL were invalidated about half a year ago. The new way to make the POST request is to follow the steps in the following [forum](https://meta.discourse.org/t/discourse-api-documentation/22706).

In my case, I logged someone out by making the following curl request:

```plaintext
curl -X POST "https://DICOURSE-WEBSITE/admin/users/USER-ID/log_out" -H "Content-Type: multipart/form-data;" -H "Api-Key: INSERT-API-KEY" -H "Api-Username: INSERT-API-USERNAME"

```

---

_[View the full topic](https://meta.discourse.org/t/logout-post-request/192601)._
