# Como obter o user\_id para fazer uma chamada de logout na API

**URL:** <https://meta.discourse.org/t/how-to-obtain-the-user-id-so-i-can-issue-a-logout-api-call/102033>\
**Category:** SSO\
**Created:** [Novembro 14, 2018, 2:55pm UTC](https://meta.discourse.org/t/how-to-obtain-the-user-id-so-i-can-issue-a-logout-api-call/102033 "2018-11-14T14:55:32Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![TeoWneD](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@TeoWneD](https://meta.discourse.org/u/TeoWneD)\
**Post date:** [Novembro 14, 2018, 4:15pm UTC](https://meta.discourse.org/t/how-to-obtain-the-user-id-so-i-can-issue-a-logout-api-call/102033/8 "2018-11-14T16:15:38Z")

</div>

Nice, Where in the querry should i supply the api key of an admin account?

Taking as example api key = XX and user UID = 50

`https://forum-website.com/admin/users/50/log_out`

Update:

I found a post talking about this is this the answer i was looking for ?

```plaintext
https://forum-website.com/admin/users/50/log_out?api_username=exampleAdmin&api_key=theKeyFromTheConsole

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-obtain-the-user-id-so-i-can-issue-a-logout-api-call/102033)._
