▲HIGHLAND DOCS

Claude Code hooks validator API

Validates a Claude Code hooks block (or a whole settings.json): events, matchers, hook types, timeouts and risky commands. This is one of 71 pay-per-call tools in the Highland Intel API, also available as an MCP tool named hooks-validate.

Price

2¢ per successful call (USD). 1 credit = 1 US cent. After the daily free allowance, pay with credits or per call with x402 (USDC on Base). Category: Agent tools.

Try it

POST https://api.highlnd-intel.group/v1/api/hooks-validate with a Bearer key and a JSON body.

curl · API key
curl -s https://api.highlnd-intel.group/v1/api/hooks-validate \
  -H "authorization: Bearer $HIGHLAND_KEY" \
  -H "content-type: application/json" \
  -d '{"config":{"hooks":{"PostToolUse":[{"matcher":"Edit|Write","hooks":[{"type":"command","command":"npm run lint --silent","timeout":60}]}]}}}'
request body
{
  "config": {
    "hooks": {
      "PostToolUse": [
        {
          "matcher": "Edit|Write",
          "hooks": [
            {
              "type": "command",
              "command": "npm run lint --silent",
              "timeout": 60
            }
          ]
        }
      ]
    }
  }
}

Request body

FieldTypeRequiredDescription
configanyYesThe config as a JSON string (comments and trailing commas allowed) or as an object, up to 60,000 characters.

What it returns

{ ok, events, hookCount, findings[{ severity: error|warning|info, code, path, message }] and counts { error, warning, info } }. A successful response wraps that payload in the usual Highland envelope: api, priceCents, payment (for example free_tier or credits), balanceCents, freeUsedToday, freeLimit, freeRemaining, and result.

Get a free API key

No email, no card. The key is shown once.

bash
curl -s -X POST https://api.highlnd-intel.group/v1/keys
export HIGHLAND_KEY="hk_live_paste_yours_here"

Full walkthrough: Quickstart. Key management: API keys. Buy more credits: api.highlnd-intel.group/buy.

MCP and x402

The same tool is available over MCP (Streamable HTTP) at https://api.highlnd-intel.group/mcp as hooks-validate. Connect it in Claude, ChatGPT, Grok, or Cursor and other editors.

OpenAPI: /openapi.json. Catalog: /v1/catalog. This tool in the API reference.

  • Web search API — Neural or keyword web search with highlights, for agents. Up to 10 results, public URLs only (8¢)
  • Web page contents API — Clean text of up to 5 public pages, capped per page, for agents to read (6¢)
  • Find similar pages API — Pages similar in meaning to a given public URL, with highlights. Up to 10 results (8¢)
  • Web scrape to Markdown API — Main content of one public page as Markdown (up to 50,000 characters), with title and status (7¢)
  • Site map API — Discovers the URLs of a public site (up to 200), optionally ranked by a search term (6¢)

See every tool on the tool pages index or the API reference.