Block
Block Key
Block an Virtual key from making any requests.
Parameters:
- key: str - The key to block. Can be either the unhashed key (sk-...) or the hashed key value
Example:
curl --location 'http://0.0.0.0:4000/key/block' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{
"key": "sk-Fn8Ej39NxjAXrvpUGKghGw"
}'
Note: This is an admin-only endpoint. Only proxy admins can block keys.
POST/key/block
Authorization
Header parameters
Body
key*Key
Response
Successful Response
Body
Response Block Key Key Block Post
Request
Response