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

`POST /anything/webhook-media-example`

Tags: `callbackExamples`

Same as above but the `example` is on the MediaTypeObject, not the schema.
Verify the 'Example' tab appears in the Callbacks section.

## Servers

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

## Request body (required)

### Content type: `application/json`

Schema: `object`

- `callbackUrl` (string<uri>, required)

## Responses

### 201

Registration created

## Callbacks

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

Event callback (media-level example)

#### 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.

Example:

```json
{
  "id": "evt_media_001",
  "type": "order.completed",
  "payload": {
    "orderId": "ORD-999",
    "total": 49.99
  }
}
```

#### Responses

##### 200

Callback acknowledged
