> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Assistants connect to Parse over MCP at [https://agent.parse.gl/mcp](https://agent.parse.gl/mcp) (Streamable HTTP). With no sign-in it answers from Parse's public view (the numbers parse.gl's public pages show, up to 5 rows a list), starting with `check_brand`. Signed in with Parse, or sent a workspace key (`parse_mcp_…`), it works in the person's workspace, starting with `get_brief`. Scripts call the same tools over REST at `https://agent.parse.gl/v1/tools/<tool>`.
>
> ```bash
> npx parse-gl init
> ```
>
> To install just the skills: `npx skills add Parsegl/skills`.
> Every tool is also a POST to https://agent.parse.gl/v1/tools/<tool>; its OpenAPI description is https://agent.parse.gl/openapi.json.

# Webhooks

> Receive signed HTTPS callbacks when jobs or tracked runs finish, or subscribe to brief alert webhooks.

Instead of polling [`read_item`](/docs/mcp/tools/read_item) or [`get_brief`](/docs/mcp/tools/get_brief), Parse can push HTTPS POST notifications to your receiver. Choose the mechanism that matches what you need: signed job/tracking callbacks or signed alert webhooks.

## Two outbound push mechanisms

| Mechanism | Configured on | Signature / auth | Payload |
| - | - | - | - |
| Job & tracking webhooks | [`ask_ai_engines`](/docs/mcp/tools/ask_ai_engines) or [`track`](/docs/mcp/tools/track) (`webhook_url`, optional `webhook_secret`) | `X-Parse-Signature` + `X-Parse-Timestamp` (HMAC-SHA256) | Event type, job/track ID, delivered answer/list IDs, charge, error |
| Brief alert webhooks | [`update_settings`](/docs/mcp/tools/update_settings) (`brief.webhookUrl` + `brief.alerts`) | `Parse-Signature: t=…,v1=…` (workspace secret on Notifications) | One-line change summary + ready call to read the full brief |

## Job and tracking completion webhooks

Pass `webhook_url` (and optionally `webhook_secret`, 16 to 256 characters) to [`ask_ai_engines`](/docs/mcp/tools/ask_ai_engines) (live asks or baselines) or [`track`](/docs/mcp/tools/track) (recurring question runs). If you omit `webhook_secret`, Parse generates a 192-bit secret (`whsec_…`) and returns it once in the tool reply so your receiver can verify signatures.

Emitted event types:

* `ask.completed` / `ask.failed`: ad-hoc [`ask_ai_engines`](/docs/mcp/tools/ask_ai_engines) runs.
* `baseline.completed` / `baseline.failed`: brand baseline runs (`baseline`); includes `brand`, `domain`, `brandName`, `answers`, `answersRead`, and `namingBrand`.
* `track.completed` / `track.failed`: scheduled daily or weekly [`track`](/docs/mcp/tools/track) collection runs; includes `track` (`trk_…`).

Example `ask.completed` payload:

```json theme={null}
{
  "event": "ask.completed",
  "job": "job_0196f8c2-1111-7000-8000-000000000001",
  "status": "done",
  "question": "best project management tool for agencies",
  "place": null,
  "answerIds": [
    "ans_0196f8c2-2222-7000-8000-000000000002"
  ],
  "listIds": [],
  "delivered": 1,
  "units": 1,
  "chargedUsd": 0.01,
  "completedAt": "2026-11-23T15:04:05.000Z"
}
```

**Headers and signing:** Every POST sends `Content-Type: application/json`, `User-Agent: Parse-Webhooks/1 (+https://agent.parse.gl)`, `X-Parse-Timestamp: <unix seconds>`, and `X-Parse-Signature: sha256=<hex>`, where the hex digest is HMAC-SHA256 over `<timestamp>.<rawBody>` using your `webhook_secret`. Verify over the raw request bytes in constant time and reject timestamps older than 300 seconds:

```js Node.js theme={null}
import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyParseJobWebhook({ secret, rawBody, signature, timestamp }) {
  if (!/^\d+$/.test(timestamp)) return false;
  if (Math.abs(Math.floor(Date.now() / 1000) - Number(timestamp)) > 300) {
    return false;
  }
  const expected =
    "sha256=" +
    createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest("hex");
  const a = Buffer.from(signature, "utf8");
  const b = Buffer.from(expected, "utf8");
  return a.length === b.length && timingSafeEqual(a, b);
}
```

```python Python theme={null}
import hashlib
import hmac
import time

def verify_parse_job_webhook(secret: str, raw_body: bytes, signature: str, timestamp: str) -> bool:
    if not timestamp.isdigit():
        return False
    if abs(int(time.time()) - int(timestamp)) > 300:
        return False
    signed = f"{timestamp}.".encode("utf-8") + raw_body
    expected = "sha256=" + hmac.new(secret.encode("utf-8"), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(signature, expected)
```

**Delivery and inspection:** Parse attempts delivery up to 3 times (10s timeout per attempt, 1s and 4s backoff), retrying on 5xx, 408, 429, and network errors (3xx redirects and other 4xx responses are never retried). Inspect recent delivery outcomes, HTTP statuses, and attempt counts with [`list_work`](/docs/mcp/tools/list_work):

```json theme={null}
{
  "view": "webhooks"
}
```

## Brief alert webhooks

Configure [`update_settings`](/docs/mcp/tools/update_settings) with `brief: { webhookUrl: "https://…", alerts: ["fact_contradicted", "crawler_blocked", "own_page_broken", "model_update_drop"] }` to receive a short signed alert whenever selected workspace events fire.

Example payload:

```json theme={null}
{
  "type": "parse.nudge",
  "workspace": "org_example",
  "slot": "weekly:2026-11-23",
  "sentAt": "2026-11-23T14:00:00.000Z",
  "text": "3 things changed for Acme",
  "since": "2026-11-16T14:00:00.000Z",
  "read": {
    "tool": "get_brief",
    "args": {},
    "rest": "POST https://agent.parse.gl/v1/tools/get_brief"
  }
}
```

**Signing:** Alert webhooks sign `<t>.<rawBody>` with HMAC-SHA256 and send `Parse-Signature: t=<unix seconds>,v1=<hex>`. A workspace admin reads the workspace signing secret in Parse on [Notifications](https://parse.gl/app/settings/notifications); it is never returned to agents.

```js Node.js theme={null}
import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyParseBriefWebhook({ secret, rawBody, header }) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const timestamp = parts.t;
  const sig = parts.v1;
  if (!timestamp || !sig || !/^\d+$/.test(timestamp)) return false;
  if (Math.abs(Math.floor(Date.now() / 1000) - Number(timestamp)) > 300) {
    return false;
  }
  const expected = createHmac("sha256", secret)
    .update(`${timestamp}.${rawBody}`)
    .digest("hex");
  const a = Buffer.from(sig, "utf8");
  const b = Buffer.from(expected, "utf8");
  return a.length === b.length && timingSafeEqual(a, b);
}
```

**Retries:** Within each send attempt, Parse retries up to 4 times (0s, 1s, 5s, 25s backoff, 10s per-attempt timeout) on 5xx, 408, 429, and network errors, and retries a failed slot up to 4 times over 24 hours unless a later send supersedes it.

## Security and SSRF rules

* All outbound webhooks require `https://` on port 443 with zero embedded credentials.
* Parse resolves DNS before connecting, rejects loopback, RFC1918 private networks, CGNAT, link-local/cloud metadata (`169.254.0.0/16`, `fe80::/10`), IPv6 ULA (`fc00::/7`), IPv4-mapped IPv6, and Parse's own hosts, and pins the socket connection to the verified IP to block DNS rebinding.
* HTTP redirects (3xx) are never followed. Return any 2xx status quickly (under 10 seconds) and process work asynchronously.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.