---
title: "Native SSO Logout Processing"
method: POST
path: "/api/{serviceId}/nativesso/logout"
tags: ["Native SSO"]
---

# Native SSO Logout Processing

`POST /api/{serviceId}/nativesso/logout`

The `/nativesso/logout` API is supposed to be used to support the concept of "logout from all applications"
in the context of [OpenID Connect Native SSO for Mobile Apps 1.0](https://openid.net/specs/openid-connect-native-sso-1_0.html)
(Native SSO). This is accomplished by deleting access/refresh token records associated with the
specified session ID. In Authlete's implementation, access/refresh token records can be associated
with a session ID only through the mechanism introduced by Native SSO.

## Path parameters

- `serviceId` string, required

## Request body

- NativeSsoLogoutRequest
  - `sessionId` string, required — The session ID of a user's authentication session.

## Response `200`

- NativeSsoLogoutResponse
  - `resultCode` string — The code which represents the result of the API call.
  - `resultMessage` string — A short message which explains the result of the API call.
  - `action` 'OK' | 'SERVER_ERROR' | 'CALLER_ERROR' — The next action that the API caller should take.
  - `count` integer — The number of deleted access/refresh token records.

## Other responses

- `400`
- `401`
- `403`
- `429` — The request exceeded the request rate permitted for the endpoint.
- `500`

## Changes

- **2026-08-03** `7ad74ab64749` — 1 info
  - added the non-success response with the status `429`

[Change history](https://skmtc.dev/authlete/apis/authlete-api/changes/api/:serviceId/nativesso/logout/post.md)

---

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