Verify that your Apple ID is complete and validated. To get apps from the Apple TV App Store, users need to sign in with their Apple ID account that has all the needed user information, including name, DoB, country (+state), a validated email address (respond to test message), and a valid payment method (for apps that have a purchase cost, or free apps that allow in-app purchases). Edit if needed.
Find apps in the Apple TV App Store - Apple Support
When signing in on devices where you weren’t signed in to before, users may be asked to for the verification code as part of two-factor authentication.
Two-factor authentication for Apple ID - Apple Support
Get a verification code and sign in with two-factor authentication - Apple Support
There is likely a time limit for the duration between receiving the code, and entering the code. Don’t have it take too long.
Weren’t you asked to enter or create your Apple ID account during setup?
- Verify that you used to correct Apple ID account, especially in case you created more than one.
- Verify that you entered the password correctly with case-sensitivity in mind. E.g. 6bvRAecY is not the same as 6bvraecy.
I don't know the specific model …
That’s why I included two links that help you find out.
… Otherwise I can't install apps.
It should work. Not sure why it doesn’t in your case. Please make use of the complimentary support that goes with all new Apple devices, for priority support to help you get set up, during the first 90 days. Contact Apple for support and service - Apple Support.