What leaves me puzzled is that I feel happy right from the first pin. So that is on the timescale of several seconds up two maybe one minute.
The high caused by Endorphin comes usually 20 minutes to one hour after exposure to pain or running. I think this is a strong counterargument against Endorphin. But maybe there is another chemical involved in this process.