There isn’t a super simple way for a user to find their agent url (other than logging into the ide). Some of this will be made a little easier to automate once our IDE API is released…
The agent url shouldn’t change for a particular developer device on an account (if the account changes, the agent url will change).
It sounds like you might be building something you plan on selling? A lot of the things you’re looking to do is made a lot easier with the tools we expose for our customers - let me know if you want some more information on those.