---
title: "Rotate the instance key and refresh the license"
method: POST
path: "/api/license/rotate_key"
tags: ["License"]
---

# Rotate the instance key and refresh the license

`POST /api/license/rotate_key`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/license/rotate_key`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/license/rotate_key/post.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Rotated; the body reports the outcome

- object

## Other responses

- `409`: A license refresh is already running

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
