Anonymous messaging (trope)
From Book Trigger Warnings
The "anonymous messaging trope" is when two (or more) characters have been exchanging messages (via email, letters, texts, etc.) anonymously throughout the story.
For a list of books on BTW with this trope, click here.