Skip to main content

Quick Start

Authentication

Include your API key in the X-API-KEY header:
X-API-KEY: <api-key>

Usage

Search for an asset by content (URL, domain, address, etc.) or by asset ID. Returns the asset status, associated reports, and takedown details if applicable.

Example Requests

async function searchAsset(content) {
  const response = await fetch(
    "https://app.chainpatrol.io/api/v2/asset/search",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        "X-API-KEY": "YOUR_API_KEY_HERE",
      },
      body: JSON.stringify({
        content,
      }),
    }
  );
  return response.json();
}

searchAsset("https://example-phishing.com")
  .then((result) => console.log("Search result:", result))
  .catch((error) => console.error("Error:", error));

Search by Asset ID

You can also search by asset ID instead of content:
curl -X POST https://app.chainpatrol.io/api/v2/asset/search \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: YOUR_API_KEY_HERE" \
  -d '{"assetId": 12345}'