I have enabled two-factor authentication and how can I access the rest api with just username and api token?