Pulsarr

Create webhook endpoint

POST
/v1/webhooks/endpoints

Create a new webhook endpoint

Authorization

headerX-API-Key<token>

API key authentication using X-API-Key header

Request Body

A new native webhook endpoint

application/json
  1. body

A new native webhook endpoint

name*string
Length1 <= length <= 100
url*string
authHeaderName?string
Lengthlength <= 100
authHeaderValue?string
Lengthlength <= 500
eventTypes*array<>
Items1 <= items
enabled?boolean
Defaulttrue

Response Body

Default Response

application/json
  1. response

One native webhook endpoint

success*boolean
data*

A native webhook endpoint, auth header value included

Example Request
curl -X POST 'http://localhost:3003/v1/webhooks/endpoints' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "url": "string",  "eventTypes": [    "media.available"  ]}'
Example Response
{  "success": true,  "data": {    "id": 0,    "name": "string",    "url": "string",    "authHeaderName": "string",    "authHeaderValue": "string",    "eventTypes": [      "media.available"    ],    "enabled": true,    "createdAt": "string",    "updatedAt": "string"  }}