Higher-level helper functions

calls is an array, so endpoint will be integers