---
title: "[BETA] Rotate AI API Key"
method: POST
path: "/ai/api-key/{id}/rotate"
tags: ["ai-api-key"]
---

# \[BETA\] Rotate AI API Key

`POST /ai/api-key/{id}/rotate`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/ai/api-key/{id}/rotate`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/ai/api-key/:id/rotate/post.ts> (a function with typed inputs; its response is checked against the schema)

Rotate AI API key value

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- RotateAiApiKeyResponse: Rotate AI API key response
  - `value` string, required: Plaintext AI API key value

## Other responses

- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-11-06** `63da6f74c845`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/ai/api-key/:id/rotate/post.md)

---

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