Skip to Content
Webhooks

Set an endpoint's events

PUT
/partner/webhook-endpoints/{endpointId}/events

Replaces the Partner API events the endpoint receives and, when standard_event_types is given, its other events too (otherwise they stay as they are); at least one event must remain. Deliveries are signed like every other event of the endpoint.

Scope: webhooks.manage. Rate limit: 300 requests per minute per API key.

Authorization

apiKey webhooks.manage
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: webhooks.manage

Path Parameters

endpointId*string
Formatuuid

Request Body

application/json
  1. body
event_types*array<>
Itemsitems <= 9
standard_event_types?array<>

The workspace's other events; omit to keep them.

Itemsitems <= 50

Response Body

Stored

application/json
  1. response
data*
meta*
Example Request
curl -X PUT 'https://app.messora.tech/api/v1/partner/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/events' \  -H 'Content-Type: application/json' \  -d '{  "event_types": [    "message.delivered",    "message.failed",    "reply.received"  ]}'
Example Response
{  "data": {    "active": true,    "endpoint_id": "019a8c2e-4f1b-7a17-9c3d-5e7a10000017",    "event_types": [      "message.delivered",      "reply.received"    ],    "url": "https://easytrade.example/hooks/messora"  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}