# 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`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rest-api.symphony.com/main/bot-authentication/logout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
