User ID -> Username Retrieval

Now, is it ok to send this kind of ajax query without using the JWT token?

Also, when I send an ajax request to my server, should I use the JWT token?