Add branch field to api