The API class