endpoint contract