Update a webhook
Changes status or event types. Set status to active to resume a paused endpoint. An endpoint removed with DELETE cannot be changed. Setting a disabled endpoint back to active or paused counts toward the 10 webhooks an agent can have that are not disabled. Scope: webhooks:manage.
bearerAuthorizationBearer <mosc_...>A client key (mosc_).
id*integerThe endpoint id.
0 < valueapplication/json- body
status?string"active""paused""disabled"eventTypes?array<>1 <= items <= 7The updated endpoint.
application/json- response
id*integerurl*stringeventTypes*array<>status*stringpaused after repeated dead deliveries. disabled after DELETE, a 410 response, or a PATCH to disabled. An endpoint removed with DELETE cannot be changed again.
"active""paused""disabled"Example request
curl -X PATCH 'https://api.messageos.ai/v1/webhooks/42' \ -H 'Authorization: Bearer mosc_...' \ -H 'Content-Type: application/json' \ -d '{ "status": "paused"}'Example response
{ "id": 3, "url": "https://example.com/messageos/webhooks", "eventTypes": [ "message.delivered" ], "status": "active"}Remove a webhook DELETE
Removes the endpoint and revokes its signing secret. It stays in the list with status disabled, receives nothing, and cannot be resumed or changed. Removing it again returns 204. Scope: webhooks:manage.
List webhook deliveries GET
Lists the 25 newest deliveries for this endpoint, without the payload. Scope: webhooks:manage.
