Accounts & Keys
Revoke a key
The key stops working immediately.
DELETE/keys/{key_id}self-hosted · access token · manage_credentials
Self-hosted. Served by synpath serve on your own machine or host, which must be running; the engine and its order types live there. Nothing on this page runs on Synpath's servers.
Path parameters
| Name | Type | Description |
|---|---|---|
key_id | string |
Response
{"ok": true}.
import os
import httpx
TOKEN = os.environ["SYNPATH_ACCESS_TOKEN"]
r = httpx.delete("http://127.0.0.1:8000/trading/keys/<key_id>", headers={"Authorization": f"Bearer {TOKEN}"})
r.raise_for_status()
print(r.json())200
{
"ok": true
}
