base class for API objects
Token API class