How to pass argument in a link?

tldr: I'm using externall app and I want to oper specific "lead" using a direct link to pipedrive lead. How do I do that?

I noticed that leads have hashed name and the leads have link like this:

where after inbox/ there is unique id. How do I get to export this ID from database ? Or Can I search ID by name with a link? i.e.