I had to wait for the all-clear after my post-op appointment and that was around 3 weeks out. After that, they gave me the all-clear for things like swimming and "fun time" with the hubs. But I'd advise waiting for your post-op and definitely calling your doc if it's too far out.
But you're probably not gonna feel like doing much for a little bit at least... There's been a lot going on 'down there' ;)
I was told 7-10 days. But I only had a few small patches of mild endo removed from my pelvis, plus an endometrioma removed from my ovary. I supposs it's different for everyone depending on how intense your surgery is. I waited 10 days and was careful when I did, all was fine.
At least six weeks but I would ask the dr. bc everyone could be different.