latestOpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

key management

Unblock Key

Unblock a Virtual key to allow it to make requests again.

Parameters:

  • key: str - The key to unblock. Can be either the unhashed key (sk-...) or the hashed key value

Example:

curl --location 'http://0.0.0.0:4000/key/unblock'     --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 unblock keys.

post/key/unblock

Headers

litellm-changed-bystring nullable

The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

Request body

keystring required

Response

Successful Response

{"stackTrail":"paths:/key/unblock:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}