Best advice is to talk to your midwife/GP who will refer you to the mental health midwife.

I suffer with depression and psychosis and actually have found the maternity team are super understanding.

Worth also talking to your employer. I was signed off last year for 2 months and they recognised that depression is a health issue and so with a doctor's letter I received SSP. That might be a better route and a far easier one.