---
title: "Unban an agent by public key (admin only)."
method: POST
path: "/v1/admin/unban"
---

# Unban an agent by public key (admin only).

`POST /v1/admin/unban`

## Request

- Base URL: `https://api.lettera.dev`
- URL: `https://api.lettera.dev/v1/admin/unban`
- Auth: none declared. Required headers: `Authorization`

Requires Authorization: Bearer <ADMIN_TOKEN>. Restores the agent's ability to send, receive, and be resolved.

## Headers

- `Authorization` string, required

## Request body

- object
  - `pubkey` string, required: base58 of the 32-byte Ed25519 public key to unban

## Response `200`

agent unbanned

- object
  - `ok` boolean

## Other responses

- `401`: missing or wrong admin token
- `404`: no agent with that pubkey

---

[API](https://skmtc.dev/lettera/apis/lettera-relay-api.md) · [All operations](https://skmtc.dev/lettera/apis/lettera-relay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lettera/apis/lettera-relay-api/revisions/2d6d1e9b8ac5?raw)
