This API requires an API key with appropriate permissions. See API Key
Documentation for more details.
Quick Start
Authentication
Include your API key in theX-API-KEY
header:
Example Request
Request Schema
Request Body
Field | Type | Required | Default | Constraints | Description |
---|---|---|---|---|---|
query | string | ❌ No | - | - | Search query to filter threats by content |
startDate | string | ❌ No | 1 day ago | YYYY-MM-DD format | Start date for filtering threats (inclusive) |
endDate | string | ❌ No | today | YYYY-MM-DD format | End date for filtering threats (inclusive) |
assetType | AssetType[] | ❌ No | - | - | Array of asset types to filter by |
sorting | SortingConfig[] | ❌ No | [{key: "id", direction: "asc"}] | - | Array of sorting configurations |
per_page | number | ❌ No | 10 | Min: 1, Max: 100 | Number of threats to return per page |
next_page | string | ❌ No | - | Positive integer | Cursor for fetching the next page of results |
Sorting Configuration
Each sorting object must have the following structure:Field | Type | Required | Description |
---|---|---|---|
key | string | ✅ Yes | Field to sort by (see options below) |
direction | "asc" | "desc" | ✅ Yes | Sort direction |
Available Sort Fields
"id"
- Sort by threat ID"blockedAt"
- Sort by when the asset was blocked"content"
- Sort by threat content"type"
- Sort by asset type
Asset Type Filter
TheassetType
parameter accepts an array of asset types to filter by:
Available Asset Type Values
Available Asset Type Values
"URL"
- Website URLs"PAGE"
- Web pages"ADDRESS"
- Blockchain addresses"LINKEDIN"
- LinkedIn profiles"TWITTER"
- Twitter profiles/posts"FACEBOOK"
- Facebook profiles/pages"YOUTUBE"
- YouTube channels/videos"REDDIT"
- Reddit posts/subreddits"TELEGRAM"
- Telegram channels/groups"GOOGLE_APP_STORE"
- Google Play Store apps"APPLE_APP_STORE"
- Apple App Store apps"AMAZON_APP_STORE"
- Amazon App Store apps"MICROSOFT_APP_STORE"
- Microsoft Store apps"TIKTOK"
- TikTok profiles"INSTAGRAM"
- Instagram profiles"THREADS"
- Threads profiles"MEDIUM"
- Medium articles/profiles"CHROME_WEB_STORE"
- Chrome extensions"MOZILLA_ADDONS"
- Firefox addons"OPERA_ADDONS"
- Opera addons"EMAIL"
- Email addresses"PATREON"
- Patreon profiles"OPENSEA"
- OpenSea collections/profiles"FARCASTER"
- Farcaster profiles"IPFS"
- IPFS hashes"GOOGLE_FORM"
- Google Forms"WHATSAPP"
- WhatsApp contacts"DISCORD_USER"
- Discord users"QUORA"
- Quora profiles/posts"GITHUB"
- GitHub repositories/profiles"TEACHABLE"
- Teachable courses"SUBSTACK"
- Substack publications"DEBANK"
- DeBank profiles"TAWK_TO"
- Tawk.to chat widgets"JOTFORM"
- JotForm forms"PRIMAL"
- Primal profiles"BLUESKY"
- Bluesky profiles"SNAPCHAT"
- Snapchat profiles"DESO"
- DeSo profiles"PINTEREST"
- Pinterest profiles/pins
Response Schema
Response Body
Threat Result Object
Each item in thethreats
array has the following structure:
Field | Type | Description |
---|---|---|
id | number | Unique threat identifier |
content | string | Threat content (URL, address, username, etc.) |
type | string | Asset type (AssetType enum value) |
blockedAt | string | ISO 8601 timestamp of when asset was blocked |
Complete Response Example
Access Control
The API enforces strict access control based on your API key:-
Organization API Keys:
- Can only access threats for their associated organization
- Returns only threats that were blocked by the organization
- Example: An API key for “acme-org” can only query threats blocked by “acme-org”
-
User API Keys:
- Can access threats for any organization where the user is a member
- Requires the user to be an active member of the queried organization
Default Behavior
- Date Range: If no
startDate
orendDate
is provided, the API defaults to returning threats from the last 1 day - Pagination: If no
next_page
is provided, returns the first page of results - Sorting: Defaults to sorting by
id
in ascending order - Page Size: Defaults to 10 results per page (max 100)
Example Implementation
Authorizations
Your API key. This is required by most endpoints to access our API programatically. Reach out to us at support@chainpatrol.io to get an API key for your use.
Body
application/json