talk to api