# General Translation Platform: Удаление ключа API проекта
URL: https://generaltranslation.com/ru/docs/platform/openapi/reference/api-keys/delete-project-api-key.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Удаляет ключ API проекта, после чего его больше нельзя использовать для аутентификации. Требуется project:api_keys:write.

{/* Этот файл сгенерирован Fumadocs. Не редактируйте его напрямую. Чтобы внести изменения, повторно выполните команду генерации. */}

## Endpoint

`DELETE https://api.gtx.dev/v2/projects/{projectId}/api-keys/{apiKeyId}`

**Operation ID:** `deleteProjectApiKey`

**Tags:** `API keys`

**Summary:** Delete a Project API key

Delete a project API key so it can no longer authenticate. Requires `project:api_keys:write`.

Authentication: required. Send an API key in the `Authorization: Bearer <key>` header when authenticating.

### Parameters

- `projectId` (path, string, required)
- `apiKeyId` (path, string, required): API key ID.
- `gt-api-version` (header, "2026-10-08.v1", optional): API contract version. Defaults to the oldest supported version.

### Responses

**200**: Project API key deleted. The key usually stops authenticating at once, and always within 10 minutes. Repeating the request returns 404.
Response body (`application/json`, object):
- `deleted` (true, required)

**400**: The request is malformed or failed validation.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("invalid_request" | "api_version_unsupported", required)

Response body (`text/html`, string):

**401**: Authentication is missing or invalid.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("unauthenticated" | "api_key_invalid", required)

Response body (`text/html`, string):

**403**: The caller is authenticated but not allowed to perform this operation or access the requested resource.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("ip_not_allowed" | "permission_missing" | "target_inaccessible", required)

Response body (`text/html`, string):

**404**: The requested resource was not found.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("not_found", required)

Response body (`text/html`, string):

**429**: Too many requests. The rate limit was exceeded.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("rate_limited", required)

Response body (`text/html`, string):

**500**: An unexpected server error occurred.
Response body (`application/json`, object):
- `error` (string, required)
- `code` ("internal_error", required)

Response body (`text/html`, string):

Complete OpenAPI 3.1 specification: https://generaltranslation.com/openapi.yaml

OpenAPI schema: [openapi.json](https://generaltranslation.com/openapi.json)

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
