API Reference
Complete API documentation for OpenClaw gateway and services
⚡ Quick Start
Base URL
https://your-domain.com/apiAuthentication
Most endpoints require an API key or valid session. Include the header:
Authorization: Bearer YOUR_API_KEYResponse Format
All API responses follow a consistent JSON format with success and data fields.
Core API
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/track | Track clicks and get affiliate statistics |
| POST | /api/track | Report conversions and track affiliate sales |
| GET | /api/docs | Fetch all available documentation |
| GET | /api/docs/[slug] | Get specific documentation by slug |
Configuration API
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/config | Get current configuration |
| POST | /api/config | Update gateway configuration |
| DELETE | /api/config/cache | Clear configuration cache |
Channels API
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/channels/webhook | Handle webhook events from channels |
| GET | /api/channels/status | Check channel connection status |
| POST | /api/channels/send | Send messages through connected channels |
Skills API
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/skills | List all loaded AI skills |
| POST | /api/skills/load | Load a skill from file or URL |
| POST | /api/skills/unload | Unload a skill |
| POST | /api/skills/execute | Execute a skill with parameters |
📝 Response Formats
JSON
Standard JSON response with success flag
{"success": true, "data": {...}}JSONP
JSON with Padding for cross-domain requests
callback({"success": true})Error
Standardized error response format
{"success": false, "error": "Error message"}📊 HTTP Status Codes
200 OK
Request successful
201 Created
Resource created successfully
400 Bad Request
Invalid request parameters
401 Unauthorized
Missing or invalid authentication
404 Not Found
Resource not found
500 Server Error
Internal server error
🚀 Start Building
Ready to integrate with OpenClaw? Check out our getting started guide.
Getting Started Guide