add new endpoint for inspect

Fixes #3754