Delete a webhook endpoint
/ webhook-endpoints/ {endpoint_id}Remove a delivery destination. Deliveries to it stop immediately and its signing secret is gone for good; the attempts already recorded against it are not deleted, because they are the history of what Stridge did rather than configuration.
The answer is 204 with no body.
Who may.
In live it is an owner's alone: a developer or a viewer answers
403permission_denied, checked before the step-up. In a sandbox an owner and a developer may, and a viewer answers403permission_denied. A secret key of the environment may too when it holdswebhook.write; one without it answers403permission_denied.Step-up.
In live, a person needs a fresh step-up of any factor (
totp,backup_codeor an emailed code) no older than 15 minutes, which the act renews; without one it answers403step_up_required. A sandbox never asks, and a secret key is never asked.
Show 2 more detailsShow fewer details
A resetting sandbox.
Live answers this for a sandbox environment too, and while that sandbox's reset runs it answers
409environment_resetting: nothing is served for a sandbox until its reset finishes.Called with a live secret key.
A key calls this with a live secret key (
sk_live_). The webhook endpoints' configuration is served by live alone, and a sandbox secret key (sk_sbx_) reaches the sandbox, which does not serve this operation and answers it404operation_not_served(this operation is served to live keys only).
Parameters
Path
- endpoint_idstringrequired
The endpoint's identifier.
Headers
- X-Stridge-Environmentstring <uuid>optional
Which environment the request acts inside, on an operation a session and an API key both call. Learn more
Show full descriptionShow less
It is required under a person's session, exactly as
EnvironmentHeaderdescribes: a session request that omits it answers400withenvironment required, and one naming an environment the caller holds no membership of answers404.An API key names its own environment, so a request made with one omits this header. A key request that sends it answers
400withenvironment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.
Responses
The endpoint was deleted. The answer has no body.
No response body.
Errors
The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.
- 400environment_requiredEnvironment required
- 400header_invalidInvalid header
- 400parameter_unknownUnknown parameter
- 401api_key_not_acceptedAPI key not accepted
- 401authentication_requiredAuthentication required
- 401publishable_key_not_acceptedPublishable key not accepted
- 401token_invalidInvalid or expired token
- 403membership_suspendedMembership suspended
- 403permission_deniedPermission denied
- 403step_up_requiredStep-up required
- 404environment_not_foundEnvironment not found
- 404operation_not_servedOperation not served
- 404resource_missingNo such object
- 409environment_provisioningEnvironment provisioning
- 409environment_resettingEnvironment resetting
- 429rate_limitedToo many requests