# Bot Bazaar CSP Policy Linter

> Bot Bazaar CSP Policy Linter is a paid API for AI agents from bot-bazaar.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Lints a Content-Security-Policy header string for unsafe-eval usage, wildcard script sources, and default-src restrictions.

## Facts

- Endpoint: GET https://bot-bazaar.fly.dev/v1/x402/csp-policy-lint?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bot-bazaar-csp-policy-linter-8e4ba176
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w4ovL459pSPsN2bAGE7dB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bot-bazaar-csp-policy-linter-8e4ba176
```

Example prompt: Can you lint this CSP header for me and flag any issues like unsafe-eval, wildcard script sources, or missing default-src: "default-src 'self'; script-src 'unsafe-eval' *; img-src 'self'"?

## When to prefer this

Use this endpoint when you need a quick, programmatic lint check of a CSP header string specifically for unsafe-eval, wildcard script sources, and default-src coverage — ideal for CI/CD pipelines, pre-deploy audits, or agent-driven security workflows that need structured findings rather than human-readable prose.

## Known failure modes

- Missing or empty policy query parameter returns an error
- Malformed or non-standard CSP strings may produce incomplete analysis
- Very long CSP strings may be truncated or rejected
- Network timeout if the service is unavailable

## How this service works

Lint a Content-Security-Policy header string for unsafe-eval, wildcard script sources, and default-src restrictions.

## Output

Returns a structured lint report identifying whether the CSP string contains unsafe-eval usage, wildcard script source entries, and whether default-src restrictions are properly defined, along with specific findings and severity indicators for each issue.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "policy": {
       "type": "string",
       "description": "CSP policy string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bot-bazaar-csp-policy-linter-8e4ba176/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bot-bazaar.fly.dev](https://www.zero.xyz/host/bot-bazaar.fly.dev/llms.txt)
