>"what happens when you type api.example.com and press enter?"
That's easy.
Bash checks all the directories as listed in my $PATH, doesn't find it and then prints "api.example.com: command not found" on the screen.
If you want me to tell you how a bluetooth keyboard works you're going to need to pay more than a sysadmin's salary.