Express Template API Reference
Express Template API ReferenceComplete reference for all endpoints available in the Skillful Express Server template.
Health Check
Health CheckGET /health
Check if the server and agent are running properly.
const response = await fetch('http://localhost:3000/health');
const data = await response.json();
// {
// "status": "ok",
// "agent": "Wojak"
// }Agent Endpoints
Agent EndpointsGET /agent/info
Get detailed information about the current agent.
const response = await fetch('http://localhost:3000/agent/info');
const data = await response.json();
// {
// "name": "Wojak",
// "description": "The Web3 King",
// "config": {
// "llm": { ... },
// "skills": [ ... ]
// }
// }GET /agent/skills
Get a categorized list of the agent's skills.
GET /agents
List all available agents.
POST /agent/switch
Switch to a different agent.
Chat Endpoints
Chat EndpointsPOST /chat
Send a message to the agent.
GET /chat/history
Get the conversation history.
POST /chat/clear
Clear the conversation history.
Response Status Codes
Response Status Codes200: Successful request
400: Bad request (missing or invalid parameters)
429: Too many requests (rate limit exceeded)
500: Server error
Rate Limiting Headers
Rate Limiting HeadersRate limit information is included in response headers:
Error Responses
Error ResponsesAll error responses follow this format:
Example error when rate limit is exceeded:
Example error when no agent is selected:
Last updated