---
title: "Rotate the server ingestion key"
method: POST
path: "/api/sites/{siteId}/rotate-server-key"
tags: ["Sites"]
---

# Rotate the server ingestion key

`POST /api/sites/{siteId}/rotate-server-key`

## Request

- Base URL: `https://slimlytics.com`
- URL: `https://slimlytics.com/api/sites/{siteId}/rotate-server-key`
- Auth: HTTP bearer

## Path parameters

- `siteId` string, uuid, required

## Response `200`

New server ingestion key

- object
  - `serverWriteKey` string, uuid, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient site role
- `404`: Site or resource not found
- `500`: Internal service error

---

[API](https://skmtc.dev/slimlytics/apis/slimlytics-api.md) · [All operations](https://skmtc.dev/slimlytics/apis/slimlytics-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slimlytics/apis/slimlytics-api/revisions/f9a26641a254?raw)
