Make it possible to get a namespace by ID with API

Description

As discussed with @briann on slack some time ago: it would be nice to have a possibility to find a namespace by an ID with the API.