Add support for specifying API configuration to Cylon#api