frontend

Perform Logout for Native Apps

Changed on

Use this endpoint to log out an identity using an Ory Session Token. If the Ory Session Token was successfully revoked, the server returns a 204 No Content response. A 204 No Content response is also sent when the Ory Session Token has been revoked already before.

If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned.

This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead.

delete/self-service/logout/api

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /self-service/logout/api
  • Auth
    none declared

Request body

session_tokenstring required

The Session Token

Invalidate this session token.

Response

Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 204.

Changes

    • info

      api operation id submitSelfServiceLogoutFlowWithoutBrowser removed and replaced with performNativeLogout

    • info

      api tag frontend added

    • info

      api tag v0alpha2 removed

    • info

      removed the non-success response with the status

    • info

      api tag v0alpha2 added

    • info

      api tag v0alpha1 removed

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status