---
title: "Restore an archived agent"
method: POST
path: "/v1/agents/{id}/unarchive"
tags: ["Agents"]
---

# Restore an archived agent

`POST /v1/agents/{id}/unarchive`

## Request

- Base URL: `https://api.cadencercs.com`
- URL: `https://api.cadencercs.com/v1/agents/{id}/unarchive`
- Auth: HTTP bearer

Reverses an archive. Being reversible is the point — nobody archives confidently if they cannot undo it.

## Path parameters

- `id` string, required

## Response `200`

Restored.

- object
  - `ok` boolean, required
  - `agentId` string
  - `archived` boolean, required

## Other responses

- `401`: Not signed in, and no account-linked API key was sent.
- `500`: Unexpected server error. The body is always JSON.
- `502`: Google refused; nothing changed here either.

---

[API](https://skmtc.dev/cadencercs/apis/cadence-api.md) · [All operations](https://skmtc.dev/cadencercs/apis/cadence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cadencercs/apis/cadence-api/revisions/9438443c2081?raw)
