Create a webhook endpoint
Adds an endpoint that receives processing events, and returns its signing secret. The URL is checked: in production it must use https, and it must not resolve to a private or internal address.
POST
/ settings/ webhooks/ createServerhttps://api.medialit.cloud
Authentication
Body
Authentication
Bearer token (JWT)
Or API key in the
x-medialit-apikeyheader
Request body
application/json
requiredurlstringrequiredReceiving URL. Must use https in production.
eventsarray<string>Events to send. Defaults to every event.
enabledbooleanDefaults to true.
Responses
201Endpoint created
idstringrequiredurlstringrequiredeventsarray<string>requiredEvents to send. Defaults to every event.
enabledbooleanrequiredsecretHintstringrequiredThe signing secret's last characters.
secretstringSigning secret (Standard Webhooks). Returned only when the endpoint is created or its secret rotated; read it with POST /settings/webhooks/secret.
createdAtstring (date-time)requiredupdatedAtstring (date-time)required
400Bad Request
errorstringrequired
401Unauthorized
errorstringrequired
403Forbidden
No response body.
409The app has the most endpoints allowed
errorstringrequired
500Internal Server Error
errorstringrequired
