Mikrotik Api Examples Link

// Authenticate and create a new user $auth = base64_encode("$username:$password"); $headers = array( 'Authorization: Basic ' . $auth, 'Content-Type: application/json' );

$new_user = array( 'username' => 'newuser', 'password' => 'newpassword', 'group' => 'admin' );

$result = curl_exec($response); curl_close($response);