add endpoint for data