websmsby api basic logic