Retrieves a single user by their ID from X.
This function fetches a specific user from X using their unique ID. It allows for optional expansions to be included in the response, providing flexibility in the amount of data retrieved. The function returns a promise that resolves to a UserLookupResponse object containing detailed user information.
post/getById
Request body
Response
Successful response