The Apocryphon of John — "The Secret Book of John" — survives in four manuscripts: one in the Berlin Codex and three in the Nag Hammadi collection, in both long and short versions. The existence of four manuscripts is significant: it indicates that this text was among the most widely copied and most important in the Gnostic communities of Egypt. It was not a marginal curiosity but a central document — the foundational account of the Gnostic understanding of reality.
The text is structured as a revelation dialogue: the risen Jesus appears to John — son of Zebedee, the beloved disciple — and responds to his questions about the nature of God, the creation of the world, and the fate of the soul. This framework — the post-resurrection secret teaching — appears in several Gnostic texts and signals that what follows is the esoteric inner teaching that Jesus reserved for those capable of receiving it, distinct from the exoteric teaching given to the crowds.
The cosmology that follows is the most elaborate in all of Gnostic literature — a hierarchical system of divine emanations, fallen powers, archons, and human souls that explains with extraordinary precision how a being of infinite goodness produced a world of suffering and limitation. The answer the Apocryphon gives: the infinite God did not produce the world of suffering. The world of suffering was produced by a mistake — by Sophia's autonomous act — and by the ignorance and arrogance of the being that Sophia's mistake generated.