---
title: "Info Key Fn"
method: GET
path: "/key/info"
tags: ["key management"]
---

# Info Key Fn

`GET /key/info`

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"
```

## Query parameters

- `key` string, nullable — Key in the request parameters

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
