Battle api