Are you still working? That's actually crucial, because you can't just quit work and get SSDI, no matter what is going on with you. You actually have to be disabled and out of work and unable to return because of your disability. I know that your situation involves mental health issues, because you've posted about them here.
Please do on-line research about exactly what you need to do to qualify for SSDI. At the risk of repeating myself, it's a lot harder than people realize, and so they then go with the, "Oh they always turn everyone down the first time" because they just don't understand what is needed.
You may well want to find a local attorney who does SSDI appeals. If the first one turns you down, find a second. But if you get turned down by several attorneys, then you really are not going to get it. I listened to my attorney take phone calls from people hoping she could help them. Sometimes she said, "Yes, you have a case and we need to meet." Other times she said, "I'm sorry, but I don't believe you have a good case and so I am not willing to represent you. However, this is just my opinion and please feel free to contact another attorney."
The other thing about getting an appeals attorney is that their compensation is very strictly limited by law. Because going through this appeals process will take a number of months, you will wind up getting retroactive money, if approved. The attorney's share will come out of that, but you'll still get a decent lump sum. However, all this means you need to have some means of living and supporting yourself while all this is happening.
What I saw over and over when I worked for that attorney, was that her clients were typically in desperate straits, often close to homelessness. It was not pretty.
Again, please do lots of research and I wish you the best of luck.