---
title: "Stop an agent"
method: POST
path: "/api/agents/{agentId}/stop"
tags: ["agents"]
---

# Stop an agent

`POST /api/agents/{agentId}/stop`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/agents/{agentId}/stop`
- Auth: none declared

Stops a running agent

## Path parameters

- `agentId` string, uuid, required

## Response `200`

Agent stopped successfully

- object
  - `success` boolean
  - `data` object
    - `message` string

## Other responses

- `400`: Invalid agent ID format
- `404`: Agent not found

---

[API](https://skmtc.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
