It was a gradual process. About 90% of our current NT cannon was universally acknowledged as scripture by the end of the first century. The first written listing of the cannon which is included in most modern bibles was by Althanasius in the 4th Century.
Thanks. Had a very quick read about Althanasius and will dig deeper later this evening at home. I didn’t realise that it was such a ‘messy’ process.