---
title: "Perform Logout for APIs, Services, Apps, ..."
method: DELETE
path: "/self-service/logout/api"
tags: ["v0alpha1"]
---

# Perform Logout for APIs, Services, Apps, ...

`DELETE /self-service/logout/api`

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.

## Request body

- SubmitSelfServiceLogoutFlowWithoutBrowserBody — nolint:deadcode,unused
  - `session_token` string, required — The Session Token Invalidate this session token.

## Response `204`

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

## Other responses

- `400` — jsonError
- `500` — jsonError

## Changes

- **2021-07-13** `8f1b399ab6e6` — 1 info
  - endpoint added
- **2021-05-05** `381c760af46e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ory/apis/ory-identities-api/changes/self-service/logout/api/delete.md)

---

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