api init and add auth for sender