Source: https://dinakar-rewind.docs.pageloop.ai/api-reference/webhooks/receiveplexwebhook

# Plex webhook event receiver

POST `https://api.rewind.rest/v1/webhooks/plex`

Receives Plex webhook events (multipart/form-data). No auth required -- uses its own verification via PLEX\_WEBHOOK\_SECRET. Body is parsed manually to avoid double-consumption.

## Authorization

#### Authorization (header, string, required)

API key. Read keys (rw\_live\_...) access GET endpoints. Admin keys (rw\_admin\_...) access all endpoints.

## Response

#### 200

Webhook processed successfully

#### success (boolean, required)

#### message (string, required)

#### 400

Bad request

#### error (string, required)

#### status (integer, required)

#### 403

Forbidden

#### error (string, required)

#### status (integer, required)

#### 503

Integration not configured on this instance

#### error (string, required)

#### status (integer, required)

#### Request

```bash cURL
curl -X POST 'https://api.rewind.rest/v1/webhooks/plex' \
  -H 'Authorization: Bearer <token>'
```

```javascript JavaScript
const res = await fetch('https://api.rewind.rest/v1/webhooks/plex', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <token>',
  },
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://api.rewind.rest/v1/webhooks/plex',
    headers={'Authorization': 'Bearer <token>'}
)
data = res.json()
```

#### Response

```json 200
{
  "success": true,
  "message": "string"
}
```

```json 400
{
  "error": "Not found",
  "status": 404
}
```

```json 403
{
  "error": "Not found",
  "status": 404
}
```

```json 503
{
  "error": "Not found",
  "status": 404
}
```
