Express Template API Reference

Complete reference for all endpoints available in the Skillful Express Server template.

Health Check

GET /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

GET /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

POST /chat

Send a message to the agent.

GET /chat/history

Get the conversation history.

POST /chat/clear

Clear the conversation history.

Response Status Codes

  • 200: Successful request

  • 400: Bad request (missing or invalid parameters)

  • 429: Too many requests (rate limit exceeded)

  • 500: Server error

Rate Limiting Headers

Rate limit information is included in response headers:

Error Responses

All error responses follow this format:

Example error when rate limit is exceeded:

Example error when no agent is selected:

Last updated