---
title: "GET /private/reset_api_key"
method: GET
path: "/private/reset_api_key"
tags: ["Account Management", "Private"]
---

# GET /private/reset_api_key

`GET /private/reset_api_key`

Generates a new secret key for an existing API key while keeping the same key ID and other properties. This is useful if the secret has been compromised or needs to be rotated for security purposes.

The old secret becomes invalid immediately, and the new secret is returned in the response. Store the new secret securely as it will not be displayed again. All applications using the old secret will need to be updated with the new secret.

**📖 Related Article:** [Creating new API key on Deribit](https://docs.deribit.com/articles/creating-api-key)

**Scope:** `account:read_write`

[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Freset_api_key)

## Query parameters

- `id` integer, required

## Response `200`

Success response

- PrivateApiKeyResponse
  - `jsonrpc` '2.0', required — The JSON-RPC version (2.0)
  - `id` integer — The id that was sent in the request
  - `result` ApiKey, required
    - `id` integer, required — Key identifier
    - `timestamp` integer, required — The timestamp (milliseconds since the Unix epoch)
    - `client_id` string, required — Client identifier used for authentication
    - `client_secret` string, required — Client secret or MD5 fingerprint of public key used for authentication
    - `public_key` string — PEM encoded public key (Ed25519/RSA) used for asymmetric signatures (optional)
    - `max_scope` string[], required — Describes maximal access for tokens generated with given key. If scope is not provided, its value is set as none. **📖 Related Article:** [Access Scope](https://docs.deribit.com/articles/access-scope)
    - `enabled` boolean — Informs whether api key is enabled and can be used for authentication
    - `default` boolean, required — Informs whether this api key is default (field is deprecated and will be removed in the future)
    - `name` string — Api key name that can be displayed in transaction log
    - `enabled_features` string[] — List of enabled advanced on-key features.<br><br><b>Available options:</b><br>- <code>restricted_block_trades</code>: Limit the block_trade read the scope of the API key to block trades that have been made using this specific API key<br>- <code>block_trade_approval</code>: Block trades created using this API key require additional user approval. Methods that use <code>block_rfq</code> scope are not affected by Block Trade approval feature
    - `ip_whitelist` unknown[] — List of IP addresses whitelisted for a selected key
      - unknown

---

[API](https://skmtc.net/deribit/apis/deribit-api-2.md) · [All operations](https://skmtc.net/deribit/apis/deribit-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deribit/deribit-api-2/versions/430b3f0bc67c/schema)
