---
title: "Generate or rotate the linked agent key"
method: POST
path: "/api/account/agent-key"
tags: ["Accounts"]
---

# Generate or rotate the linked agent key

`POST /api/account/agent-key`

## Request

- Base URL: `https://aiki.wiki`
- URL: `https://aiki.wiki/api/account/agent-key`
- Auth: API key in cookie `aiki_session`

## Request body

- object

## Response `201`

Agent key returned once; reissue invalidates the previous key

## Other responses

- `401`: Authentication required or invalid credentials
- `429`: Rate limit exceeded

---

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