Skip to Content
MailroomMailroom home

Update a webhook endpoint

PATCH
/webhooks/{id}

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Request Body

application/json
  1. body
url*string
Formaturi
event_types?array<string>

Response Body

Endpoint

application/json
  1. response
id?string
url?string
Formaturi
status?string
Value in"active""disabled"
event_types?array<string>
secret?string

Shown on create/rotate only.

Example Request
curl -X PATCH 'https://api.mailroom.gosuevals.com/v1/webhooks/string' \  -H 'Content-Type: application/json' \  -d '{  "url": "http://example.com"}'
Example Response200
{  "id": "string",  "url": "http://example.com",  "status": "active",  "event_types": [    "string"  ],  "secret": "string"}