fix: add credentials to rest-api method

@hmunfru @jframos