---
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

## Changes

- **2026-06-11** `02daa1da4e82` — 1 info
  - endpoint added
- **2026-06-11** `c81ae5036e69` — 1 breaking
  - api path removed without deprecation
- **2026-04-21** `108f632ed635` — 1 info
  - endpoint added
- **2026-03-13** `2bc2a920189e` — 1 breaking
  - api path removed without deprecation
- **2026-02-07** `5f5df128dbcd` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/logout/get.md)

---

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