Delete a webhook endpoint

DELETE/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 403 permission_denied, checked before the step-up. In a sandbox an owner and a developer may, and a viewer answers 403 permission_denied. A secret key of the environment may too when it holds webhook.write; one without it answers 403 permission_denied.

  • Step-up.

    In live, a person needs a fresh step-up of any factor (totp, backup_code or an emailed code) no older than 15 minutes, which the act renews; without one it answers 403 step_up_required. A sandbox never asks, and a secret key is never asked.

Show 2 more details
  • A resetting sandbox.

    Live answers this for a sandbox environment too, and while that sandbox's reset runs it answers 409 environment_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 it 404 operation_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 description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment 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.

Request
curl "https://api.stridge.com/v2/webhook-endpoints/string" \
  -X DELETE \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response204

The endpoint was deleted. The answer has no body.