There is nothing resembling a proof for the authenticity of the Apologia, we can just assess plausibility.
Xenophon wasn't even in Athens at the time of Socrates' trial, so his apology is of very questionable value as a source.
On the other hand, Plato's Apologia was published in the decade after Socrates' execution (399 BC) - most likely in 386 BC. So the memory of the judges and audience was still relatively fresh, and they would've objected if Plato strayed off too much from the historical events.
Still, the Apologia wasn't a great success, more or less ignored at first, so maybe there was indeed some protest, but the records of it have been lost.
Obviously, Plato took some artistic liberties, at least: he streamlined what happened, since the only witness appearing was Meletos (an accuser), yet the Apologia is framed as a protocol of the trial.
It would be very ironic, though, if Plato pushed a lot of "fake news" in his apology, went further than a poetic recollection: Socrates made his defense all about valorizing the search for truth (as in all his life, as we know him through Plato's Dialogues), and harshly criticizing those who try to use manipulative techniques to appeal to the emotions of the judges.
But even this "total fraud" option, while less plausible, is still possible - we just don't know.
In particular, did he go to the Oracle and genuinely tried to find someone wiser than him, or is that just a textual device to explain Socrates' method of maieutics?
Socrates never claimed that he went there himself:
For of my wisdom—if it is wisdom at all—and of its nature, I will offer you the god of Delphi as a witness. You know Chaerephon, I fancy. He was my comrade from a youth and the comrade of your democratic party, and shared in the recent exile and came back with you. And you know the kind of man Chaerephon was, how impetuous in whatever he undertook. Well, once he went to Delphi and made so bold as to ask the oracle this question; and, gentlemen, don't make a disturbance at what I say; for he asked if there were anyone wiser than I. Now the Pythia replied that there was no one wiser. And about these things his brother here will bear you witness, since Chaerephon is dead.
(Plat. Apol. 20e - 21a)
He can name a witness, so that makes it believable. This event is regarded as historical by most scholars.
A side remark: it is only believable because Chaerepon asked the Pythia a leading question. If the question had simply been "Who is the wisest human?", there would be no naturalistic explanation for this answer. According to the story, Chaerepon went to the oracle before Socrates was famous!