Bearer token for group and type constructor

Allow passing the bearer token for the group and type constructor, as
this can be used for post requests