You have to have a doctor's certification that you suffer from a medically recognized mental condition and that the pet is necessary to help you maintain a good mental state. Sadly, there are online people who profess to be "doctors" and will issue a letter for you without even seeing you.