Authenticate and list open alerts via the Prisma Cloud CSPM REST API

domain: pan.dev/prisma-cloud/api/cspm · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain your API base URL from the Prisma Cloud console (e.g., api.prismacloud.io or a region-specific variant) and create Access Key and Secret Key credentials in Settings > Access Keys.
  2. Authenticate by POST-ing to /login with a JSON body containing username (the Access Key) and password (the Secret Key); the response contains a token valid for ten minutes.
  3. Use the token in subsequent requests with the header x-redlock-auth: YOUR_TOKEN.
  4. List open alerts with POST /v2/alert and a JSON body specifying filters such as timeRange, alert.status: open, and policy.severity.
  5. Page through results using the pageToken field returned in the response; repeat requests until nextPageToken is absent.
  6. For each alert, extract fields including alertId, policy.name, resource.name, and resource.cloudType for downstream ticketing or reporting.

Known gotchas

Related routes

Generate and download a compliance report via the Prisma Cloud CSPM API
pan.dev/prisma-cloud/api/cspm · 6 steps · unrated
Connect a Checkov scan to Prisma Cloud Application Security to centralize IaC findings
docs.prismacloud.io · 6 steps · unrated
List, triage, and resolve GitHub secret scanning alerts via the REST API
docs.github.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans