How to get my user ID via Freshsales API?

Hi everybody.

Since the API keys are personalized, the API should know who is doing an API call.
Is there any endpoint, something like /users/me to get my own user ID? I need it to assign different objects that I create via API to myself.

Thanks.

Hi @Pavel_Nedelko,
Good Day!
There is no such API we have in freshsales for now,
but you can use this to get the current logged in User

client.data.get("loggedInUser").then (
    function(data) {
      // success operation
    },
    function(error) {
      // failure operation
    }
  );

kindly refer to this document for more reference

Thanks