Prince performing in 1996 with then-wife Mayte Garcia. That year, their son died days after birth. (AP Photo/Honolulu Star Bulletin, Kathryn Bender)

The late rock legend Prince faced an extortion attempt in 1997 and three threatening telephone messages in 2005, according to a newly released FBI file.

The first record is handwritten and indicates that someone threatened to sell personal documents to the media that could be potentially damaging to Prince.

Federal investigators redacted part of the record, but the document goes on to discuss the death of Prince's infant son, which "is also being investigated by authorities," although they have "declined federal prosecution."

The date of the complaint, March 28, 1997, coincides with the famously private pop star's legal battle to keep two former employees from talking to the news media about the death of his son, from natural causes days after he was born.

Months earlier, a London tabloid reported about the infant's death, based on interviews with those employees, but any connection of the FBI complaint with that case isn't clear. The employees believed the baby should never had been taken off life support, but investigators did not find any wrongdoing.

The second complaint involved a woman who was calling Prince's office "threatening to make his life miserable, and threatening bodily harm. Caller also threatens to commit suicide."

Thirteen days later, federal prosecutors declined to take the case.

Prince died of an accidental fentanyl overdose last year at age 57, and his heirs are in court trying to resolve his estate.

By law, FBI files on individuals become public after the person has died.

Weeks after Prince died, the Star Tribune filed a request for the artist's FBI file.

It took the FBI a year to release four pages, which were partly redacted. Thirteen additional pages were withheld entirely on the grounds that releasing them would be an "unwarranted invasion of personal privacy" or could reveal the identity of a confidential informant.

Read the file here: