To use the RLPL Remote Control API, you'll need to:
POST /api/clients/register Content-Type: application/json { "discord_id": "your_discord_id", "machine_info": { "name": "Client Name", "machine_id": "unique_machine_id" } } Response: { "client_id": "generated_id", "client_token": "jwt_token" }
Method | Endpoint | Description |
---|---|---|
GET | /api/health | Check API status |
POST | /api/clients/register | Register new client |
POST | /api/clients/:id/heartbeat | Send client heartbeat |
POST | /api/clients/:id/screenshot | Upload screenshot |
GET | /api/clients | List user's clients |
POST | /api/clients/:id/commands | Send command to client |
// Client WebSocket ws://api.example.com/ws/client Authorization: Bearer <client_token> // Dashboard WebSocket ws://api.example.com/ws/dashboard Cookie: session=<session_cookie>