Inquiry about API key

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inquiry about API key

L3 Networker
In order to receive the Palo Alto Firewall api key
I checked " curl -k -X GET 'https://<fw-ip>/api/?type=keygen&user=<id>&password=<password>' " in the docs
but where is this command have to enter it?


Cyber Elite
Cyber Elite


This example is simply given using cURL since it's the defacto standard across most operating systems; you would simply copy and paste that request, replacing everything in <> with their actual values. Alternatively you can just go to the actual URL from your browser.

Community Team Member

Hi @qmso475 ,


As @BPry  mentioned you can just go to the url using your browser. 

Drop the curl command and go to https://<fw-ip>/api/?type=keygen&user=<id>&password=<password> directly using your preferred browser to get the key:




If you use the curl settings then you can use windows cmd or mac terminal to execute the command:




I hope this can help you.

Kind regards,



LIVEcommunity team member, CISSP
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.
  • 2 replies
  • 101 Subscriptions
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!