Kourtney Kardashian has revealed that she is out of danger after undergoing a scary medical complication during her pregnancy.

She took to her Instagram page to give an update, saying that she is grateful that everything is okay while holding her husband's hand.

PHOTO | COURTESY Kourtney Kardashian and Travis Barker

“As someone who has had three really easy pregnancies in the past, I wasn’t prepared for the fear of rushing into urgent fetal surgery," she posted

 “I don’t think anyone who hasn’t been through a similar situation can begin to understand that feeling of fear. I have a whole new understanding and respect for the mamas who have had to fight for their babies while pregnant.I will be forever grateful to my incredible doctors for saving our baby’s life,” she wrote.

PHOTO | COURTESY  Kourtney Kardashian and Travis Barker

“I am eternally grateful to my husband who rushed to my side from tour to be with me in the hospital and take care of me afterwards, my rock,” Kardashian wrote, going on to thank her mom, Kris Jenner, “for holding my hand through this.”

"As someone who has had three really easy pregnancies in the past, I wasn’t prepared for the fear of rushing into urgent fetal surgery. I don’t think anyone who hasn’t been through a similar situation can begin to understand that feeling of fear. I have a new understanding and respect for the mamas who have had to fight for their babies while pregnant." she added.

PHOTO | COURTESY  Kourtney Kardashian and Travis Barker

Kourtney and travis barker are expecting their first child together. Travis, a member of Blink-182, had announced earlier that the concert had to be canceled because he had to deal with a family emergency.