In order to use the Panther API, you must generate an API Key. In the Panther UI, we refer to this as an API Token.
To generate an API Token:
Log in to your Panther Console.
Navigate to Settings > API Tokens.
Click Create an API Token.
Pick a friendly name for the API Token and configure the alert and permission settings.
Click Create API Token.
You will see a success screen that displays the value of the API Token. Please note that the API Token is sensitive information and it will not be displayed again; make sure you copy the API Token and store it in a secure location.
Testing the API Token
There may be a propagation delay of 30 to 60 seconds after adding an API Token.
After generating an API Token, you can test to verify that it works as expected:
On the API Token creation success screen, click the link that says Give it a go on our Playground.
Locate the REQUEST HEADERS tab at the bottom-left corner of the Playground screen. Under this tab, change the default value of the X-API-Key header from <ENTER_YOUR_KEY_HERE> to the value of your API Token.
In the upper left corner, press the "play" icon to run the test.
You can discover the available queries, mutations, and fields by clicking Documentation Explorer on the right side panel of the Playground.