Internal ID and external ID

I get data from TG to MLWB through kafka and i get the vertex id internalID, how can I convert it to external ID or get the external ID directly?