Query cloud security issues via the Wiz GraphQL API

domain: docs.wiz.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a Service Account in Wiz under Settings > Service Accounts > Add Service Account, selecting type Custom Integration (GraphQL API), and save the client ID and client secret.
  2. Obtain a bearer token by POSTing to https://auth.app.wiz.io/oauth/token with grant_type=client_credentials, client_id, client_secret, and audience=wiz-api; include the returned access_token as Authorization: Bearer YOUR_TOKEN on subsequent requests.
  3. Determine your tenant's GraphQL endpoint from the Wiz portal (format: https://api.{region}.app.wiz.io/graphql, where region is us1, us2, eu1, eu2, etc.).
  4. Query open issues with a GraphQL POST containing a query such as { issues(filterBy: { status: [OPEN], severity: [CRITICAL, HIGH] }, first: 100) { nodes { id title severity status createdAt } pageInfo { hasNextPage endCursor } } }.
  5. Page through results using the endCursor value in pageInfo, passing it as the after argument in subsequent queries until hasNextPage is false.

Known gotchas

Related routes

Query cloud identity entitlement (CIEM) risk findings via the Wiz GraphQL API
docs.wiz.io · 6 steps · unrated
Query DSPM data findings for sensitive data exposure via the Wiz GraphQL API
docs.wiz.io · 6 steps · unrated
Query and triage findings from Google Cloud Security Command Center via the REST API
cloud.google.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