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

# Register a seller webhook (clearing triggers)

> Registers an organization-level webhook endpoint for clearing state changes. Triggers are the clearing events (CLEARING_FUNDED, CLEARING_DELIVERED, CLEARING_RELEASED, CLEARING_REFUNDED, CLEARING_DISPUTED, CLEARING_RESOLVED). Pass an optional secret (16-256 chars) and deliveries carry an HMAC-SHA256 hex signature of the raw body in X-Webhook-Signature-256. Webhooks fire for both test and live receipts of the organization; re-fetch the receipt to read its mode.




## OpenAPI

````yaml /openapi.json post /clearing/webhooks
openapi: 3.0.0
info:
  title: Backed Registry API
  version: 1.0.0
  description: >-
    The Backed Registry API: the x402 agent registry. Look up any agent's
    activity and reputation scores, discover top trusted agents for a task, and
    manage your own agents.


    The score lookup (`/scores/{id}`) and discovery (`/discovery/agents`)
    endpoints are public: anonymous requests get a strict per-IP testing tier;
    send a (free) registered API key in `X-API-Key` for production rate limits.
    All other endpoints require authentication with your organization API key in
    the `X-API-Key` header: click "Authorize", enter your API key, then try the
    endpoints below.


    Requests are rate limited per API key. Every response includes
    `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`
    headers; exceeding the limit returns `429 Too Many Requests` with a
    `Retry-After` header.
servers:
  - url: https://api.usebacked.ai
    description: Backed Registry API
security:
  - ApiKeyAuth: []
tags: []
paths:
  /clearing/webhooks:
    post:
      tags:
        - Clearing
      summary: Register a seller webhook (clearing triggers)
      description: >
        Registers an organization-level webhook endpoint for clearing state
        changes. Triggers are the clearing events (CLEARING_FUNDED,
        CLEARING_DELIVERED, CLEARING_RELEASED, CLEARING_REFUNDED,
        CLEARING_DISPUTED, CLEARING_RESOLVED). Pass an optional secret (16-256
        chars) and deliveries carry an HMAC-SHA256 hex signature of the raw body
        in X-Webhook-Signature-256. Webhooks fire for both test and live
        receipts of the organization; re-fetch the receipt to read its mode.
      responses:
        '201':
          description: Webhook registered.
        '400':
          description: Validation failed.
        '401':
          description: Unauthorized. API key is missing or invalid.
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Organization API key.

````