How to pass UserId in API?

How to pass UserId in the API usage scenario?
It was there in the embed script but I can’t find the information about the same on below url.

How can I display history for an individual using APIs?