---
title: "🔒 #26854 Удаление OAuth-клиента с секретом своей компании: все подключения через него отзываются сразу."
method: POST
path: "/oauth/client/delete"
tags: ["Auth"]
---

# 🔒 #26854 Удаление OAuth-клиента с секретом своей компании: все подключения через него отзываются сразу.

`POST /oauth/client/delete`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/oauth/client/delete`
- Auth: API key in header `sid` and API key in header `rts` and API key in header `sig`

#26854 Удаление OAuth-клиента с секретом своей компании: все подключения через него отзываются сразу.

**Access:** `authorized` (10 ) · **Scope:** `write` · **только веб-сессия**

**Allows:** `company:llm` (все обязательны; без ресурса)

### TypeScript (copy-paste)

**`POST /oauth/client/delete`**

<details open><summary><b>Body</b></summary>

```typescript
export interface OauthClientDeleteBody {
  ID: string
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type OauthClientDeleteResponse = IServerResponse<Record<string, any>>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Request body

- OauthClientDeleteBody: JSON body for `oauth/client/delete`
  - `ID` string, uuid, required

## Response `200`

OK — `IServerResponse<Record<string, any>>`

- object
  - `code` integer, required
  - `data` object, required: Response payload (нет ResponseData / doc.schema)
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest / Validation — неверные params/body/headers
- `401`: Authorize — сессия отсутствует, истекла или невалидна
- `403`: AccessNotAllowed: Privilege company:llm required
- `404`: NotFound: no such client in the company
- `406`: TimeResync — расхождение rts с сервером

---

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