PacketSafari

API keys

Create scoped personal or team credentials for the PacketSafari CLI and integrations.

API keys let an operator CLI or integration upload captures, start investigations, and read results without an interactive browser login. They are different from capture-probe credentials and from API keys used to connect PacketSafari to an AI provider.

Choose personal or team ownership

Use a personal API key for your own workstation or individual automation. Open Account → API keys.

Use a team API key for team-owned automation. Open My team → API keys. A team administrator creates and revokes these keys. The user who issued a team key must currently remain active in that team.

Create a separate key for each workstation or integration so you can revoke one without interrupting the others.

Create an API key

  1. Open Account → API keys, or open your team's API keys tab.
  2. Select Create API key.
  3. Enter a descriptive name, such as SOC alert verification.
  4. Choose an expiration period.
  5. Grant only the permissions the integration needs.
  6. Select Create API key, then copy the secret immediately.

The full secret is displayed once. PacketSafari later shows its prefix, owner, expiration, last use, and granted permissions, but cannot reveal the secret again.

The available permissions are:

PermissionUse
Upload PCAPsUpload a capture from the CLI or integration.
Read capturesRead capture metadata and processing state.
Submit alerts for verificationStart an alert-verification investigation.
Read verification resultsRetrieve verification lifecycle and structured results.
Read reportsRetrieve the generated report.

For the normal packetsafari investigate and packetsafari alert verify workflows, grant all five permissions. A narrower integration can omit permissions it never uses.

Configure the CLI

The key-ready dialog includes installation instructions and a copyable example. To save the key and deployment URL for later commands:

packetsafari config set server https://app.packetsafari.com
packetsafari config set api-key 'PASTE_YOUR_API_KEY_HERE'
packetsafari config show

Use your on-prem URL instead of https://app.packetsafari.com when applicable. config show redacts the saved secret. See Install and configure the CLI for environment variables, precedence, and model defaults.

Rotate or revoke a key

Create the replacement first, update the integration, confirm it works, and then select Revoke API key on the old key. Revocation is immediate and cannot be undone. Replace expired keys in the same way.

Do not paste a key into tickets, reports, or chat. Passing it with --api-key may save it in shell history; saved configuration or PACKETSAFARI_API_KEY is preferable for repeated use.

Credential types are separate

CredentialPurposeWhere to manage it
Personal or team API keyOperator CLI and API submissionsAccount or team API keys
Enrollment tokenRegisters a new capture probeCapture → Capture probes → Probe credentials
Probe keyAuthenticates an enrolled sensorCapture → Capture probes → Probe credentials
AI-provider keyLets PacketSafari call an upstream model providerAccount, team, or deployment AI settings

Probe credentials cannot submit investigations. Operator API keys do not enroll probes. See Capture probes for sensor installation and credential handling.