---
title: "Rotate agent API key (returns plaintext once)"
method: POST
path: "/api/v1/me/agent-key/rotate"
---

# Rotate agent API key (returns plaintext once)

`POST /api/v1/me/agent-key/rotate`

## Request

- Base URL: `https://workix.co`
- URL: `https://workix.co/api/v1/me/agent-key/rotate`
- Auth: HTTP bearer

## Response `201`

New key

- object
  - `agentApiKey` string

---

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