API request to return a user based on their external ID

Yes, this can be done by sending an authenticated GET request to https://discourse.example.com/u/by-external/{external_id}.json

This route is documented here: Discourse API Docs.