Repo is the repository NAME within the caller's own org, e.g. "cloud". Not a URL and not an owner/name pair: the owner is the validated principal's org, so this names a repository the caller already owns.
Rev is a branch, tag or commit sha. Empty means the default branch. It is resolved to a commit before anything else happens, so an answer is always about one immutable tree.