Integrating API user authentication