---
title: "Revoke a session"
method: DELETE
path: "/api/v1/auth/sessions/{sessionId}"
tags: ["Authentication"]
---

# Revoke a session

`DELETE /api/v1/auth/sessions/{sessionId}`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/auth/sessions/{sessionId}`
- Auth: HTTP bearer

Signs one device out. The session's refresh token stops working and so does the access token it already issued, rather than surviving until its own expiry.

## Path parameters

- `sessionId` string, uuid, required

## Response `204`

Session revoked

## Other responses

- `401`: Not authenticated
- `404`: No such session for this user

---

[API](https://skmtc.dev/railhook/apis/railhook-api.md) · [All operations](https://skmtc.dev/railhook/apis/railhook-api/llms.txt) · [OpenAPI document](https://skmtc.dev/railhook/apis/railhook-api/revisions/4e2c76dfc33d?raw)
