Intangles interview question

write the API with authentication and authorization.