diff --git a/docs/my-website/docs/proxy/virtual_keys.md b/docs/my-website/docs/proxy/virtual_keys.md index e9ce490786..1cb28a2e3d 100644 --- a/docs/my-website/docs/proxy/virtual_keys.md +++ b/docs/my-website/docs/proxy/virtual_keys.md @@ -200,6 +200,7 @@ Request Params: ### Response +`token` is the hashed key (The DB stores the hashed key for security) ```json { "key": "sk-02Wr4IAlN3NvPXvL5JVvDA", @@ -257,6 +258,30 @@ Request Params: ``` + +## /key/delete + +### Request +```shell +curl 'http://0.0.0.0:8000/key/delete' \ +--header 'Authorization: Bearer ' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "keys": ["sk-kdEXbIqZRwEeEiHwdg7sFA"] +}' +``` + +Request Params: +- keys: List[str] - List of keys to delete + +### Response + +```json +{ + "deleted_keys": ["sk-kdEXbIqZRwEeEiHwdg7sFA"] +} +``` + ## Tracking Spend You can get spend for a key by using the `/key/info` endpoint.