client and api must be a hash