---
title: "Portal Rotate Key"
method: POST
path: "/portal/settings/rotate-key"
tags: ["portal"]
---

# Portal Rotate Key

`POST /portal/settings/rotate-key`

## Request

- Base URL: `https://agentictrade.io` (the document declares no server; this is the origin it was published from)
- URL: `https://agentictrade.io/portal/settings/rotate-key`
- Auth: none declared

Regenerate the logged-in provider's own API secret.

Self-service recovery for a lost/compromised secret. The key_id is kept;
only the secret is rotated, so the old secret stops working immediately.
The new secret is shown once. Email credential re-issuance is deliberately
NOT offered — rotation is only possible from an authenticated verified
session, to block impersonation / account-takeover attempts.

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agentictrade/apis/agent-commerce-framework.md) · [All operations](https://skmtc.dev/agentictrade/apis/agent-commerce-framework/llms.txt) · [OpenAPI document](https://skmtc.dev/agentictrade/apis/agent-commerce-framework/revisions/65b4b64609bc?raw)
