MemorySync
API Reference

Delete Webhook

Remove a webhook endpoint. The handler stops scheduling new deliveries immediately; in-flight deliveries finish their retry budget. Returns 204 No Content.
DELETE/org/webhooks/{endpoint_id}

Authentication

Accepts a JWT bearer token (Authorization: Bearer eyJ…) or an API key (X-API-Key: ms_live_…). API-key callers should send X-Project-ID unless the key is project-locked. Cross-tenant operators must send X-Tenant-ID.

Path parameters

FieldTypeRequiredDescription
endpoint_idstringrequiredWebhook endpoint id.

Response

Returns 200 OK with the following body.

200.json
(empty body)

Errors

StatusCodeDescription
400validation_errorBody or query failed schema validation. The error includes the offending field name.
401unauthenticatedMissing or invalid bearer token / API key.
403forbiddenAuthenticated principal lacks the required scope, role, or project access.
404not_foundTarget resource does not exist or is not visible to the calling tenant.
429rate_limitedPer-IP or per-route limit exceeded. Respect the Retry-After header.
500internal_errorUnhandled server error. Quote the request_id when contacting support.

Examples

cURL
curl -X DELETE https://api.memorysync.io/org/webhooks/EXAMPLE_ID \
-H "Authorization: Bearer $MEMORYSYNC_KEY"
javascript
import { MemorySync } from 'memorysync'
const client = new MemorySync({ apiKey: process.env.MEMORYSYNC_KEY })
const result = await client.request({
method: 'DELETE',
path: '/org/webhooks/EXAMPLE_ID',
})
console.log(result)
python
from memorysync import Client
client = Client(api_key=os.environ["MEMORYSYNC_KEY"])
result = client.request(
method="DELETE",
path="/org/webhooks/EXAMPLE_ID",
)
print(result)

Behavior & notes

Returns 204 No Content on success. Past deliveries remain visible under GET /org/webhooks/deliveries/recent for the configured retention window. Use POST /org/webhooks/{id}/pause instead of delete if you only need to stop deliveries temporarily.