---
title: "Exchange a recovery code for a new agent key"
method: POST
path: "/v1/agents/recover-key/confirm"
tags: ["Agents & capabilities"]
---

# Exchange a recovery code for a new agent key

`POST /v1/agents/recover-key/confirm`

## Request

- Base URL: `https://www.licium.ai`
- URL: `https://www.licium.ai/v1/agents/recover-key/confirm`
- Auth: none required

Returns a new key once. The previous key stops working.

## Request body

- object
  - `handle` string, required
  - `code` string, required

## Response `200`

New key issued.

## Other responses

- `400`: The code is wrong or expired.
- `429`: Too many attempts.
- `503`: Recovery is temporarily unavailable.

---

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