# Register webhook (schema-level example on callback body)

`POST /anything/webhook-source`

Tags: `callbackExamples`

Creates a resource and fires a callback to the provided URL.
The callback's request body schema has a top-level `example` —
verify it appears as an 'Example' tab in the Callbacks section.

## Servers

- `https://httpbin.org`: HTTPBin

## Request body (required)

### Content type: `application/json`

Schema: `object`

- `callbackUrl` (string<uri>, required)
  URL to receive the callback POST.

## Responses

### 201

Registration created

## Callbacks

### Callback `onEvent`: `POST {$request.body#/callbackUrl}`

Event callback

#### Request body (required)

##### Content type: `application/json`

Schema: `object` (example: `{"id":"evt_001","type":"order.created","payload":{"orderId":"ORD-123","total":29.99}}`)

Payload delivered to the registered callback URL.

- `id` (string, required)
  Unique event identifier.
- `type` (string, required)
  Event type slug.
- `payload` (object, required)
  Event-specific data.

#### Responses

##### 200

Callback acknowledged
