DELETE /keys/{key_id}
Delete an API key
Delete an API key.
operationId: deleteApiKey
Not reachable through CCXT. Session/credential lifecycle. CCXT takes credentials as constructor config; it never mints them.
Authentication: bearerAuth.
Delete a key you own. Cannot delete keys owned by other wallets. Deletion is scoped to the network serving this request. A key minted on another network is invisible here and cannot be revoked here, and the 404 below does not distinguish “no such key” from “not yours” from “live on another network” — so it is never proof that a key has been retired. Revoke a key on the host that minted it, and confirm the revocation there.
Parameters
key_id
path
string
Yes
—
—
Responses
200
— (no schema declared)
Key deleted
401
— (no schema declared)
Valid session token required
404
— (no schema declared)
Key not found on this network, or not owned by you. Not proof the key is gone: a key minted on another network is invisible here and is unaffected by this call.
Example
curl -X DELETE 'https://exchange.nexus.xyz/api/exchange/keys/{key_id}' \
-H 'Authorization: Bearer <token>'import requests
headers = {
"Authorization": "Bearer <token>"
}
response = requests.delete("https://exchange.nexus.xyz/api/exchange/keys/{key_id}", headers=headers)
response.raise_for_status()
print(response.json())const response = await fetch("https://exchange.nexus.xyz/api/exchange/keys/{key_id}", {
method: "DELETE",
headers: {
"Authorization": "Bearer <token>"
},
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
console.log(await response.json());Generated from eng/apps/exchange/api/openapi.json (spec 0.9.36). Do not edit by hand — regenerate with python3 product/docs/tools/api-reference/generate.py. Hand-authored context lives in the Guides pages.
Last updated

