Interact with OpenClaw AI assistant via REST API and WebSocket. Build powerful custom AI applications.
OpenClaw Web Interface provides programming interfaces including REST API and WebSocket. Developers can integrate AI capabilities into their applications, services, or workflows.
π Capabilities: Send messages, receive replies, manage sessions, trigger skills, control plugins β all API-enabled.
POST /api/chat - Send message, get AI responseGET /api/sessions - List all sessionsPOST /api/sessions - Create new sessionGET /api/plugins - List available pluginscurl -X POST http://localhost:3000/api/chat \
-H "Content-Type: application/json" \
-d '{"message": "Hello", "sessionId": "default"}'
const ws = new WebSocket('ws://localhost:3000/ws');
ws.onmessage = (event) => {
console.log('AI:', event.data);
};
Visit openclaw.ai for complete API documentation.