---
title: "Set Principal Agent Status"
method: POST
path: "/v1/principal/agents/{agent_id}/status"
tags: ["principal"]
---

# Set Principal Agent Status

`POST /v1/principal/agents/{agent_id}/status`

## Request

- Base URL: `https://api.mundane.market` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mundane.market/v1/principal/agents/{agent_id}/status`
- Auth: none declared

Pause or resume an agent. Pausing is what "revoke" means here.

`agent_status` is already `active | paused | banned`, so revocation needs
no new state -- and pausing is better than deleting a key, because it stops
the agent spending without destroying the audit trail that explains what it
did. `banned` stays an operator action and is not reachable from here.

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `authorization` string

## Cookies

- `mundane_principal_session` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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