---
title: "Logout OAuth client session"
method: POST
path: "/oauth/logout"
tags: ["OAuth2"]
---

# Logout OAuth client session

`POST /oauth/logout`

## Request

- Base URL: `https://api.carbonvoice.app`
- URL: `https://api.carbonvoice.app/oauth/logout`
- Auth: one of:
  - API key in header `pxtoken`
  - OAuth 2 (implicit, authorization URL `https://api.carbonvoice.app/oauth/authorize`)

Revokes the current OAuth client session for the authenticated user, clears auth cookies, and returns the auth UI logout URL.

## Request body

- Oauth2LogoutRequest
  - `post_logout_redirect_uri` string: Where to send the browser after the auth UI finishes logout. Must match an allowed logout or callback URL for the client.

## Response `200`

- Oauth2LogoutResponse
  - `auth_logout_url` string, required: Auth UI logout URL that clears the provider session before returning to the requesting app.
  - `post_logout_redirect_uri` string, required: Validated URL that the auth UI will redirect back to after logout.

---

[API](https://skmtc.dev/carbonvoice/apis/carbon-voice-api.md) · [All operations](https://skmtc.dev/carbonvoice/apis/carbon-voice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/carbonvoice/apis/carbon-voice-api/revisions/b91c5c845122?raw)
