OpenAPI 3.1.02026-08-226994571.1 MB
1e929292ddd5
key management
Info Key Fn
Retrieve information about a key. Parameters: key: Optional[str] = Query parameter representing the key in the request user_api_key_dict: UserAPIKeyAuth = Dependency representing the user's API key Returns: Dict containing the key and its associated information
Example Curl:
curl -X GET "http://0.0.0.0:4000/key/info?key=sk-test-example-key-123" -H "Authorization: Bearer sk-1234"
Example Curl - if no key is passed, it will use the Key Passed in Authorization Header
curl -X GET "http://0.0.0.0:4000/key/info" -H "Authorization: Bearer sk-test-example-key-123"
get/key/info
Query parameters
keystring nullable
Key in the request parameters
Key in the request parameters
Response
Successful Response
{"stackTrail":"paths:/key/info:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}