Mastra Server

Your server is running. Use the endpoints below to get started.

Quick Start

Check server health
curl 
List your agents
curl 
Chat with an agent
curl -X POST  \
  -H 'Content-Type: application/json' \
  -d '{"messages":[{"role":"user","content":"Hello"}]}'
Stream an agent response
curl -N -X POST  \
  -H 'Content-Type: application/json' \
  -d '{"messages":[{"role":"user","content":"Hello"}]}'

API Endpoints

GET /admin/api/agents
List all agents
POST /admin/api/agents/:id/generate
Generate a response
POST /admin/api/agents/:id/stream
Stream a response
GET /admin/api/workflows
List all workflows
POST /admin/api/workflows/:id/start
Run a workflow
GET /admin/api/tools
List all tools
POST /admin/api/tools/:id/execute
Execute a tool
GET /admin/api/memory/threads
List memory threads

Resources