curl command with api token