---
title: "Rotate runner key"
method: POST
path: "/v0/runners/{runner}/key"
tags: ["runners"]
---

# Rotate runner key

`POST /v0/runners/{runner}/key`

➕ Bencher Plus: Generate a new key for a runner, invalidating the old one. The user must be an admin to use this endpoint. Returns the new key which is only shown once.

## Path parameters

- `runner` string, required

## Response `201`

successful creation

- JsonRunnerKey — Runner key response (returned on create or rotate)
  - `key` string, required
  - `uuid` string, uuid, required

## Other responses

- `4XX` — Error
- `5XX` — Error

---

[API](https://skmtc.net/bencherdev/apis/bencher-api.md) · [All operations](https://skmtc.net/bencherdev/apis/bencher-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bencherdev/bencher-api/revisions/84086e99e6cd/schema)
