Use branches instead of branch in API