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

Resources