Updates to include the endpoint in each API call