basic api call working