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 /api/agents
List all agents
POST /api/agents/:id/generate
Generate a response
POST /api/agents/:id/stream
Stream a response
GET /api/workflows
List all workflows
POST /api/workflows/:id/start
Run a workflow
GET /api/tools
List all tools
POST /api/tools/:id/execute
Execute a tool
GET /api/memory/threads
List memory threads

Resources