Whole Foods (wfm, +0.12%) first approached Amazon (amzn, +1.23%) to do a deal, Amazon was militant about leaks, and the e-commerce giant beat out two industry players and four private equity firms in its pursuit of Whole Foods.

These are just some of the juicy details revealed in a proxy that Whole Foods filed with the SEC Friday morning. In the filing Whole Foods provides a thorough timeline of the deal, which gives the most comprehensive view yet of how the acquisition went down. Highlights below:

Activist investor

April 18: CEO John Mackey and then-chairman John Elstrott receive a letter from an “industry participant” that the filing calls “Company X.” Company X expresses interest in exploring “strategic opportunities and a partnership.” (Reuters has reported that Albertsons is Company X. Albertsons declined to comment on the matter to Fortune.)

April 21: Earlier in the week, Mackey, EVP of operations Ken Meyer, and an outside consultant talk about recent media reports that say Amazon may have previously considered buying Whole Foods. The consultant offers to make an introductory phone call and connects with Amazon SVP of corporate affairs Jay Carney to see if the company would be interested in a meeting.

April 20-May 4: Whole Foods receives inquiries from four private equity firms that say that if the company wants to do a leveraged buy-out or other transaction, they might be interested.

April 24: The Whole Foods board meets to discuss the letter from Company X and an upcoming meeting with Jana. The same day the consultant talks with Amazon’s VP of worldwide corporate development Peter Krawiec.

April 26: Jana meets with Mackey and other members of the management team at Whole Food’s headquarters. Jana demands changes to the board of directors.

April 27: Whole Foods and Amazon enter into a non-disclosure agreement.

April 28: Whole Foods’ Meyer and Amazon’s Krawiec have a phone call to discuss a meeting between the two companies. The same day, the Whole Foods board meets in…