OneSignal Mobile Push Association

I have a user id(push id) from OneSignal, what else do I need to pass in order to associate this to a lead id of email.

Based on javascript API we have tried the following and it is not working:

curl -v "" --cookie "mtc_id=24887" --cookie "mautic_device_id=06p6qw5isht2cj7focgf6yy"

We do see the push_ids table growing each time we run this curl but no association to an email or lead id