---
title: "Get server agents"
method: GET
path: "/api/messaging/message-servers/{messageServerId}/agents"
tags: ["messaging"]
---

# Get server agents

`GET /api/messaging/message-servers/{messageServerId}/agents`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/messaging/message-servers/{messageServerId}/agents`
- Auth: none declared

Get all agents for a server

## Path parameters

- `messageServerId` string, uuid, required

## Response `200`

Agents retrieved successfully

- object
  - `success` boolean
  - `data` AgentInfo[]
    - `id` string, uuid: Unique identifier for the agent
    - `name` string: Name of the agent
    - `status` 'active' | 'inactive': Current status of the agent

## Other responses

- `400`: Invalid server ID
- `404`: Server not found
- `500`: Error retrieving agents

---

[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)
