---
title: "Receive the community's realtime events"
---

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

# Receive the community's realtime events

Path: Nicer API › Community

`POST /community/webhooks/liveblocks`

URL: `https://api.nicer.travel/community/webhooks/liveblocks`

Receives the events of the realtime service behind the community (new threads and comments, notifications, deleted rooms) and publishes them as community events. Only that service calls it: the handler verifies its signature over the raw request body and refuses anything that fails, so it is not anonymous.

## Authentication

- `webhookSignature`, apiKey, in header, header `x-nicer-webhook-signature`

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.nicer.travel/community/webhooks/liveblocks \
  --header 'x-nicer-webhook-signature: <x-nicer-webhook-signature>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/community/webhooks/liveblocks';
const options = {
  method: 'POST',
  headers: {'x-nicer-webhook-signature': '<x-nicer-webhook-signature>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/community/webhooks/liveblocks"

headers = {"x-nicer-webhook-signature": "<x-nicer-webhook-signature>"}

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "success": true
}
```

- `success` (`community.webhooks.liveblocks.create.response.200.success`; boolean, required)

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`community.webhooks.liveblocks.create.response.400.errorCode`; string, required)
- `errorMessage` (`community.webhooks.liveblocks.create.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`community.webhooks.liveblocks.create.response.401.errorCode`; string, required)
- `errorMessage` (`community.webhooks.liveblocks.create.response.401.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Community/community.webhooks.liveblocks.create/index.md
