# 4SEC Price Alert Setup

> 4SEC Price Alert Setup is a paid API for AI agents from api.foursec.xyz, paid per call via x402, $0.04/call, status down (last checked 2026-09-15).

Creates a conditional price alert for a crypto token that fires a webhook when a specified price condition is met

## Facts

- Endpoint: GET https://api.foursec.xyz/price-alert
- Price: $0.04/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/4sec-price-alert-setup-7d7e894e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J02QrZQy-SsfXvXImtY-F

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 4sec-price-alert-setup-7d7e894e
```

Example prompt: Set a price alert for ETH that fires my webhook at https://myapp.com/hooks/eth when the price drops below $2,000 — make it expire in 24 hours.

## When to prefer this

Use this endpoint when you need asynchronous, event-driven price notifications for crypto tokens across DEXes — particularly when you want to avoid polling a price endpoint repeatedly. Ideal for agent workflows that need to react to market conditions without being active, or when you want to wire automated downstream actions (trades, notifications, logging) via webhook on a price trigger.

## Known failure modes

- Missing required fields (symbol, condition, webhook_url) returns a 400 error
- Invalid or unreachable webhook URL may be accepted but silently fail at trigger time
- Alert TTL exceeding 168 hours will be rejected or clamped
- Invalid wallet address format returns a validation error
- Payment failure via x402 protocol prevents alert creation
- Condition string not in expected format may cause parsing errors

## How this service works

Real-time multi-DEX aggregated crypto market data. Pay per request with USDC on Base via x402 protocol.

## Output

Returns a JSON object with a unique alert ID, status 'active', the monitored symbol, a structured condition object, an expiry datetime, and the registered webhook URL confirming the alert was successfully created.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbol",
  "condition",
  "webhook_url"
 ],
 "properties": {
  "symbol": {
   "type": "string",
   "description": "Token symbol (uppercase)"
  },
  "condition": {
   "type": "string",
   "description": "Alert trigger condition"
  },
  "webhook_url": {
   "type": "string"
  },
  "agent_wallet": {
   "type": "string",
   "description": "EVM (0x...) or Solana (base58) wallet address"
  },
  "target_price": {
   "type": "number",
   "description": "Price level to trigger the alert"
  },
  "expires_in_hours": {
   "type": "integer",
   "description": "Alert TTL in hours (max 168)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string"
  },
  "status": {
   "enum": [
    "active"
   ],
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "condition": {
   "type": "object"
  },
  "expires_at": {
   "type": "string",
   "format": "date-time"
  },
  "webhook_url": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/4sec-price-alert-setup-7d7e894e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.foursec.xyz](https://www.zero.xyz/host/api.foursec.xyz/llms.txt)
