How to connect to ATP via API