To find the API key for Cloud Print Agent:

Step 1: Visit Setup > Location Setup.
Step 2: Select the location.
Step 3: Click on Printer & Peripheral Settings > Print Settings.
Step 4: You'll find the API Key under Secondary Printers.