---
title: "Rotate Signing Keys"
method: POST
path: "/v2/keys/rotate"
tags: ["Signing Keys"]
---

# Rotate Signing Keys

`POST /v2/keys/rotate`

## Request

- Base URL: `https://qstash-eu-central-1.upstash.io`
- URL: `https://qstash-eu-central-1.upstash.io/v2/keys/rotate`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `qstash_token`
- TypeScript: <https://skmtc.dev/upstash/apis/qstash-rest-api/docs/v2/keys/rotate/post.ts> (a function with typed inputs; its response is checked against the schema)

Rotate your signing keys

## Response `200`

Keys rotated successfully

- SigningKeys
  - `current` string: The current signing key.
  - `next` string: The next signing key.

---

[API](https://skmtc.dev/upstash/apis/qstash-rest-api.md) - [All operations](https://skmtc.dev/upstash/apis/qstash-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upstash/apis/qstash-rest-api/revisions/0c3b83ef4770?raw)
