---
title: "Secret Scan (x402)"
method: GET
path: "/x402/v2/secret-scan"
tags: ["x402"]
---

# Secret Scan (x402)

`GET /x402/v2/secret-scan`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/secret-scan`
- Auth: none required

Scan code/config/logs for leaked secrets: AWS keys, GitHub tokens, Stripe keys, API keys, private keys, DB URLs, JWTs. Algorithmic regex matching.

## Query parameters

- `text` string, required: Code, config, or log output

## Response `200`

Success

- object
  - `clean` boolean
  - `findings` unknown[]
    - unknown
  - `total_findings` integer
  - `severity_summary` object

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
