If you were provided a code from a Team owner to join the team, enter it here and select “Join Team”.
You can join a public team immediately. You must request access to a private team. Once approval is received, you will have access to the team and its channels.
If a team owner hasn't enabled discoverability of their private team, you won't be able to find it by using search. You'll need to contact them directly to request to join.