---
title: "Revoke Session"
method: DELETE
path: "/api/sessions/{hash}"
tags: ["user"]
---

# Revoke Session

`DELETE /api/sessions/{hash}`

## Request

- Base URL: `https://api.git.mari.zip` (the document declares no server; this is the origin it was published from)
- URL: `https://api.git.mari.zip/api/sessions/{hash}`
- Auth: API key in cookie `gitarena-session`
- TypeScript: <https://skmtc.dev/mari/apis/gitarena/docs/api/sessions/:hash/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `hash` string, required

## Response `204`

Session revoked

## Other responses

- `400`: Cannot revoke the current session
- `401`: Authentication required
- `404`: Session not found

## Changes

- **2026-10-29** `efaeb85ac1be`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mari/apis/gitarena/changes/api/sessions/:hash/delete.md)

---

[API](https://skmtc.dev/mari/apis/gitarena.md) - [All operations](https://skmtc.dev/mari/apis/gitarena/llms.txt) - [OpenAPI document](https://skmtc.dev/mari/apis/gitarena/revisions/437eec085d26?raw)
