Mikrotik Api Examples Jun 2026
// Add a static route const route = dst: '10.0.0.0/24', gateway: '192.168.1.1' ; const addRoute = await axiosInstance.put(`$router/ip/route`, route); console.log('Route added:', addRoute.data);
When working with the binary API, remember that the numbers displayed in CLI are relative indexes, not the immutable .id values that the API requires. Always use the * -prefixed identifiers: mikrotik api examples
/ip service set api address=192.168.1.0/24,10.0.0.0/8 // Add a static route const route = dst: '10