Mechanism (plain English)
Beta-endorphin binds the mu-opioid receptor (an inhibitory Gi receptor). It lowers cyclic AMP, opens potassium channels and blocks calcium channels, which quiets pain-signalling neurons and produces pain relief and euphoria.