It's important to note that the Tale of the Heike is not a single, unified work but rather a collection of stories and poems that were compiled and passed down orally for generations before being written down. Therefore, it's difficult to pinpoint an exact date of authorship.
However, scholars generally agree that the earliest written versions of the Tale of the Heike emerged sometime during the Kamakura period (1185-1333).