---
title: "Subscribe an external agent callback webhook for real-time market events"
method: POST
path: "/webhooks/subscribe"
tags: ["Webhooks"]
---

# Subscribe an external agent callback webhook for real-time market events

`POST /webhooks/subscribe`

## Request

- Base URL: `https://foresea.ink` (the document declares no server; this is the origin it was published from)
- URL: `https://foresea.ink/webhooks/subscribe`
- Auth: none declared

Register an automated webhook callback. The response contains an HMAC secret (X-Foresea-Signature) for validating payloads.

## Request body

- WebhookSubscribeRequest
  - `url` string, required: Destination webhook callback URL (https/http)
  - `events` string[], nullable: Events to subscribe to: 'edge_alert', 'market_resolution', 'new_market', 'all'
  - `min_edge` number: Minimum edge threshold for edge_alert events

## Response `200`

Successful Response

- WebhookSubscribeResponse
  - `id` string, required
  - `url` string, required
  - `events` string[], required
  - `secret` string, required
  - `min_edge` number, required
  - `created_at` string, required
  - `active` boolean, required
  - `status` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/foresea/apis/foresea-intelligence-api.md) · [All operations](https://skmtc.dev/foresea/apis/foresea-intelligence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foresea/apis/foresea-intelligence-api/revisions/b03e49f4385d?raw)
