Fix agent call to lastline api