how do i get my air play password

when we try to connect the phone to the apple tv to the tv , we are asked for a password. where do we find it?
I believe the code is shown on the phone
If you have permission to connect to the TV you're referring to then you should know the passcode. If you do not know it, ask the owners of the TV to give it to you so that you can stream from your iPhone to that TV via airplay.

Original thread: https://forums.imore.com/threads/how-do-i-get-my-air-play-password.382967/