Allow api.url to be set in options.