    def new_api_token(self, token=None, **kwargs):
        """Create a new API token

        If `token` is given, load that token.
        """
        return APIToken.new(token=token, user=self, **kwargs)
Create a new API token

If `token` is given, load that token.
jupyterhub/orm.py