Moved endpoint constants to the API class