---
title: "Webhook Subscribe"
method: POST
path: "/api/v1/gateway/webhook/subscribe"
tags: ["trust-gateway"]
---

# Webhook Subscribe

`POST /api/v1/gateway/webhook/subscribe`

## Request

- Base URL: `https://agentavow.com` (the document declares no server; this is the origin it was published from)
- URL: `https://agentavow.com/api/v1/gateway/webhook/subscribe`
- Auth: none declared

Register an outbound webhook for scan-score-change notifications.

When the security scan score changes for the specified repo, AgentAvow
will POST a signed payload to the callback URL containing:
``{repo, new_score, old_score, changed_at, jws}``.

Example::

    POST /api/v1/gateway/webhook/subscribe
    {"repo": "owner/repo", "callback_url": "https://api.moltbridge.ai/webhooks/scan",
     "provider": "moltbridge"}

## Request body

- WebhookSubscribeRequest: Subscribe to outbound scan-change notifications for a repo.
  - `repo` string, required
  - `callback_url` string, required
  - `provider` string, required
  - `signing_secret` string, nullable

## Response `200`

Successful Response

- WebhookSubscribeResponse: Confirmation of a webhook subscription.
  - `subscribed` boolean, required
  - `repo` string, required
  - `callback_url` string, required
  - `provider` string, required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

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