You'll be prompted for your phone number and your phone's IMEI number, and then AT&T will unlock your device. The requirements vary slightly for prepaid AT&T devices and business devices ...
T-Mobile and AT&T this week responded to the FCC’s proposed rule requiring providers unlock phones within 60 days of activation—even if they’re under contract and not paid off yet.