---
title: "Logout"
method: POST
path: "/api/authorize/logout"
tags: ["OAuth Authorization"]
---

# Logout

`POST /api/authorize/logout`

Revoke the calling API key. Idempotent — 200 whether the key was ACTIVE or already gone.

## Headers

- `X-API-Key` string, required

## Response `200`

Successful Response

- LogoutResponse
  - `success` boolean, required
  - `revoked_key_id` string, nullable
  - `message` string, required

## Other responses

- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/compresr/apis/compresr-platform-api.md) · [All operations](https://skmtc.net/compresr/apis/compresr-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/compresr/compresr-platform-api/revisions/93ee959dfa51/schema)
