Skip to Content
RunePayDocs
API referenceWebhook endpoints

Update a webhook endpoint

Disabling fails pending deliveries; enabling does not resend them.

PATCH
/webhook_endpoints/{id}

Disabling fails pending deliveries; enabling does not resend them.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A secret key, sk_test_… or sk_live_….

Path Parameters

id*string

The object id.

Header Parameters

Idempotency-Key?string

Makes a retry safe: the same key and body within 24 hours does not repeat the request.

Request Body

application/json
  1. body
api_version?string

Event envelope version. Defaults to 2026-12-15.

description?string|null
metadata?

Your own key-value strings, returned as sent.

url?string

A public HTTPS URL.

enabled_events?array<string>
status?string
Value in"enabled""disabled"

Response Body

Success.

application/json
  1. response
id*string
object*string
url*string
livemode*boolean
enabled_events*array<string>

Event types to deliver, or ["*"] for all.

status*string
Value in"enabled""disabled""deleted"
api_version*string
description*string|null
metadata*

Your own key-value strings, returned as sent.

created*integer

Unix timestamp in seconds.

Example Request
curl -X PATCH 'https://runepay.co/api/v1/webhook_endpoints/string' \  -H 'Authorization: Bearer sk_test_...' \  -H 'Content-Type: application/json' \  -d '{  "status": "disabled"}'
Example Response
{  "id": "we_01KA9F6G8H0J2K4M6N8P0Q2R4S",  "object": "webhook_endpoint",  "url": "https://merchant.example/hooks",  "livemode": false,  "enabled_events": [    "*"  ],  "status": "disabled",  "api_version": "2026-12-15",  "description": null,  "metadata": {},  "created": 1767225600}