Best Practices
Palo Alto Networks recommends adhering to the following best practices to keep your API key secure:
- Periodically reset the API key by regenerating them in the support portal. This revokes the previously circulated API key at
00:00 UTC
of the action issuance date. - Do not distribute or share the API key to users that do not require access to the API.
- Do not embed API keys in code or application source tree files. This can inadvertently expose the API key. Instead, consider storing the API key in environmental variables or files that are excluded from your application source tree files.