Panther API
Interact with Panther entities using the REST and GraphQL APIs
Last updated
Interact with Panther entities using the REST and GraphQL APIs
Last updated
Panther offers a REST API and a GraphQL-over-HTTP API. You can use the API Playground in the Panther Console to explore both APIs. Before making API calls, you will need to generate an API token.
Discover the REST API schema here, and the GraphQL schema here.
The Panther APIs support an ever-growing set of operations that allow you to build your security workflows:
After you have successfully created an API token, remember to periodically rotate it. See instructions for token rotation in Rotating API tokens, below.
In the upper right corner of your Panther Console, click the gear icon. In the dropdown menu, click API Tokens.
Click Create an API Token.
If a token already exists, click Create New Token.
Provide a Name, then choose the permissions you'd like to grant this token.
You can find required permissions for each REST API operation on each entity's page.
In the IP Restrictions section, in the CIDR Blocks field, enter one or more IP addresses to which you'd like to restrict usage of the token, if any.
Enter the IP address(es) in CIDR notation, e.g., 10.0.0.0/8
or 8.8.8.8/32
.
If no IP addresses are specified, the token will be usable by any IP address.
Click Create API Token.
You will see a success screen that displays the value of the API token. Copy the API token and store it in a secure location, as it will not be displayed again.
Optionally test your new 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.
API tokens are used to authenticate against and authorize access to Panther’s public API. As with username and password credentials, you should store API tokens securely to protect them from bad actors. Rotating your token periodically may lessen the likelihood of it being compromised. The Center for Internet Security (CIS) and National Institute of Standards and Technology (NIST) recommend rotating API tokens every 90 days.
You can rotate your API token either in your Panther Console, or by calling Panther's API itself. Once you've rotated your token, the previous one is no longer valid.
Rotate an API token in the Panther Console
To rotate your API token in the Panther Console:
In the upper right corner of your Panther Console, click the gear icon, then API Tokens.
Locate the token you'd like to rotate. In the upper right corner of its tile, click the three dots icon, then Rotate.
Visit the Panther Knowledge Base to view articles about the Panther APIs that answer frequently asked questions and help you resolve common errors and issues.
On the confirmation modal that pops up, click Continue.
The modal will display your new API token. You will only see this once, so be sure to copy and store it in a secure location.