> This page is for Referencia de la API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://signalcore.ai/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://signalcore.ai/docs/_mcp/server.

# Create

POST https://signalcore.ai/v1/webhooks
Content-Type: application/json

An endpoint (`{url, events}`, the URL https to a public host); `secret`, what its
deliveries are signed with, shown this once.

Reference: https://signalcore.ai/docs/referencia/webhooks/create

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects an object.

- `url` (string, required)
- `events` (list of enum, required)
  - Allowed values: `message.created`, `conversation.holder_changed`, `inbox.item_created`, `run.finished`, `run.failed`, `call.ended`, `channel.status_changed`, `approval.requested`

## Response

### 201

Successful Response

- `id` (string, required)
- `url` (string, required)
- `events` (list of enum, required)
  - Allowed values: `message.created`, `conversation.holder_changed`, `inbox.item_created`, `run.finished`, `run.failed`, `call.ended`, `channel.status_changed`, `approval.requested`
- `created_at` (datetime, required)
- `secret` (string, required)

## Errors

### 422 Webhooks Create Request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (map from string to any, optional)

### ValidationErrorLocItem

## Examples

**Request**

```json
{
  "url": "url",
  "events": [
    "message.created"
  ]
}
```

**Response**

```json
{
  "id": "id",
  "url": "url",
  "events": [
    "message.created"
  ],
  "created_at": "2024-01-15T09:30:00Z",
  "secret": "secret"
}
```

**SDK Code**

```python
import requests

url = "https://signalcore.ai/v1/webhooks"

payload = {
    "url": "url",
    "events": ["message.created"]
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```