---
title: "Create server"
method: POST
path: "/api/messaging/message-servers"
tags: ["messaging"]
---

# Create server

`POST /api/messaging/message-servers`

## Request

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

Create a new server

## Request body

- object
  - `name` string, required
  - `description` string
  - `metadata` object

## Response `201`

Server created successfully

- object
  - `success` boolean
  - `data` object
    - `server` Server
      - `id` string, uuid: Unique identifier for the server
      - `name` string: Name of the server
      - `description` string: Description of the server
      - `metadata` object: Additional server metadata
      - `createdAt` integer: Unix timestamp when the server was created

## Other responses

- `400`: Invalid request
- `500`: Error creating server

---

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