add endpoint constants to api