split api from tickets and secure tickets endpoint