> For the complete documentation index, see [llms.txt](https://rest-api.symphony.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rest-api.symphony.com/main/bot-authentication/logout.md).

# Session Logout

{% openapi src="/files/T41DVTovUhrKgc4uLHrd" path="/v1/logout" method="post" expanded="true" fullWidth="true" %}
[authenticator-api-public.yaml](https://544392450-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F909t04Fk8FiEI7fBcmlw%2Fuploads%2Fgit-blob-fbac22e6de11bb95e3f2243769875c33684b49d8%2Fauthenticator-api-public.yaml?alt=media)
{% endopenapi %}

> #### 📘 Note
>
> You must provide a certificate where the Common Name of the certificate matches the username of an active Service User account on your pod.\
> To call the Logout endpoint for a user, you must have a valid sessionToken for the user.

Example call sequence:

1. Call [Session Authenticate](/main/bot-authentication/rsa-session-authenticate.md) to get a `sessionToken`.
2. Call [Logout](/main/bot-authentication/logout.md) with the `sessionToken`.

To call the Logout endpoint for an app, you must have a valid session token for an app that's been installed for the user whom you intend to log out.

Example call sequences:

1. Call [App Authenticate](/main/apps-on-behalf-of-obo/obo-rsa-app-authentication.md) to get a `sessionToken`.
2. Call [Logout](/main/bot-authentication/logout.md) with the `sessionToken`.
3. Call [App Authenticate](/main/apps-on-behalf-of-obo/obo-rsa-app-authentication.md) to get a `sessionToken`.
4. Call [User Authenticate](/main/apps-on-behalf-of-obo/obo-rsa-user-authentication-by-user-id.md) with the `sessionToken`.
5. Call [Logout](/main/bot-authentication/logout.md) with the `sessionToken`.
