If you say that you did not know what you were letting yourself in for when you decided to do something, you mean you did not realize how difficult, unpleasant, or expensive it was going to be.
He got the impression that Miss Hawes had no idea of what she was letting herself in for.
I realized I'd let myself in for something from which there was no turning back.