Reading this further, the question is more like “how do I create a url for my collision object?”
As you only have the ID, you need to rely on using same name of the collision object component:
local url = msg.url(nil, id_hash, "collisionobject")
I recommend reading this manual