API documents for sncosmo