---
title: "Logout"
method: GET
path: "/logout"
tags: ["Authentication"]
---

# Logout

`GET /logout`

OAuth2 logout endpoint. Logs out the user from Auth0 and redirects to specified URL.
    
    **Query Parameters:**
    - `returnTo`: URL to redirect to after logout (optional, default: extension logout page)
    - `client_type`: Client type for determining Auth0 client ID (optional, default: papr_plugin)
    
    **Flow:**
    1. Client redirects user to this endpoint
    2. This endpoint redirects to Auth0 logout URL
    3. Auth0 logs out the user and redirects to the specified return URL
    
    **Example:**
    ```
    GET /logout?returnTo=https://chat.openai.com
    ```
    
    **Note:** This endpoint initiates the logout process. The actual logout completion happens on Auth0's side.

## Response `200`

Logout initiated successfully

- LogoutResponse — Response model for logout endpoint
  - `message` string — Logout status message
  - `logout_url` string, required — URL to complete logout process

## Other responses

- `500` — Internal server error

---

[API](https://skmtc.net/papr-ai/apis/papr-memory-api.md) · [All operations](https://skmtc.net/papr-ai/apis/papr-memory-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/papr-ai/papr-memory-api/versions/b553be9aad37/schema)
