Hello Connor,
The link below will help ;
https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/get-started-with-the-pan-os-xml-api/get-your-api-key
The administrator account need roles to be applied to it . see link below on how to enable API access for an administrator account ;
https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/get-started-with-the-pan-os-xml-api/enable-api-access
Thanks,
Prince.
------------------------------
Prince Amoako
------------------------------