a generic id hash endpoint