Get the "device_id"

Hi guys! We need to persist and propagate in our environment the “device_id” of the device used at the time of registration. I see that I can get it in the “Logs” section (Auth0 UI) and through the API (but not in real time). Is there a way to get it in real time? Maybe with a hook?

PD: We need the same “device_id” of Auth0 logs for future audits (so we can´t generate a new one)

Not quite sure if it’s doable with hooks but for sure in terms of logs it’s not possible to get it in real time.