# POST /webhooks/subscribe

**Resource:** [Webhooks](./webhooks.md)  
**MCP tool:** `create_webhook_subscription`  
**Scopes:** `webhooks:write`  
**Write operation:** yes

Subscribe a URL to API event notifications.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `url` | body | string | yes |  |
| `events` | body | array | yes |  |
| `secret` | body | string | yes |  |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/webhooks/subscribe"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"url":"...","events":"...","secret":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`