Where are the docs for adding a Proxmox compute resource for Foreman?

I’m trying to connect my Proxmox Virtual Environment 5.3-12 to Foreman but all I get is “HTTP/1.1 401 permission denied - invalid PVE ticket\r\n” Apparently, I can’t figure this out by myself and am wondering if there are docs how to get these two systems connected. Thanks!