> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-vector.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Keys

<Info>
  You can run the async code by importing `Client` from `upstash_qstash.asyncio`
  and awaiting the methods.
</Info>

#### Retrieve your signing Keys

```python
from upstash_qstash import Client

client = Client("<QSTASH_TOKEN>")
keys = client.keys()
both_keys = keys.get()

print(both_keys["current"], both_keys["next"])
```

#### Rotate your signing Keys

```python
from upstash_qstash import Client

client = Client("<QSTASH_TOKEN>")
keys = client.keys()
new_keys = keys.rotate()
print(new_keys["current"], new_keys["next"])
```
