Move a sandbox endpoint's failing_since back

POST/sandbox/test-helpers/webhook-endpoints/{endpoint_id}/failing-since
  • It answers 404 against a live environment.

    A test helper acts on a sandbox only, so a live key is answered 404 environment_not_sandbox too.

    Make the endpoint failing since failing_since, then apply the failing-endpoint rule to it at once, so its notice and its disable are seen without waiting days: two days back, the workspace's owners get the endpoint's one notice; three days back, it is disabled (status: disabled, disabled_reason: failing), its pending retries stop and new events are not sent to it. POST /webhook-endpoints/{endpoint_id}/enable re-enables it and replays what it missed. While it is enabled, a delivery to it that answers 2xx ends the failing state, as for any endpoint; once it is disabled, only the re-enable ends it, so on a disabled endpoint a failing_since later than its own answers 422 parameter_invalid. Moving it further back is accepted.

  • It answers 200 with the endpoint

    as it stands afterwards. failing_since is not later than now: a later one answers 422 parameter_invalid. The helper moves only the endpoint's failing state; it sends nothing.

  • Retrying.

    Send an Idempotency-Key: a retry with the same key within 24 hours answers the first answer again; the same key with another body answers 400 idempotency_key_reused.

    Errors

    The closed set of codes: environment_required (400), parameter_unknown (400), body_invalid (400), header_invalid (400, an Idempotency-Key longer than 255 characters, or an X-Stridge-Environment sent beside a secret key), idempotency_key_reused (400), authentication_required, token_invalid and api_key_not_accepted (401), permission_denied (403, a viewer, or a secret key without webhook.deliver), membership_suspended (403), environment_not_found (404), environment_not_sandbox (404, a live environment), resource_missing (404, an endpoint the environment does not hold), environment_provisioning (409, a sandbox not ready yet), environment_resetting (409), idempotency_key_in_use (409), body_too_large (413), media_type_unsupported (415), parameter_missing (422, no failing_since) and parameter_invalid (422, a failing_since that is not an RFC3339 time, is later than now, or is later than a disabled endpoint's own).

Parameters

Path

  • endpoint_idstringrequired

    The sandbox endpoint whose failing state is moved back.

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.

  • Idempotency-Keystringoptional

    A caller-chosen key making this request safe to retry. Sent, the server remembers what the first request with it produced; omitted, every request is a new one. Learn more

    Show full description

    The same key with the same parameters returns the first result, status and body both, and does nothing a second time. So a retry after a dropped connection is safe whether or not the first attempt landed. The parameters are compared as parsed, not as bytes: the query with its names sorted and the JSON body decoded, so member order, spacing and escaping never make two requests differ, while any changed value does.

    What is remembered is the answer of an attempt that began execution, success or failure, a 500 included. A refusal made before execution is not remembered, so a retry with the same key runs afresh once its cause is fixed: a validation error (400, 422), a 409 conflict, a 429, a 403 step_up_required, and any answer carrying Retry-After. An answer whose body is larger than 64 KiB is not remembered either, and an operation may say that its 500 is not; a retry of either runs the request again. What the first attempt did stands, so a create that took a unique value answers that value's conflict on the retry: a payout whose first attempt took its reference_id answers 409 payout_reference_taken.

    The same key with different parameters answers 400 with idempotency key replayed with a different body: a key names one request, and reusing it for another is a client bug rather than a retry. A replay while the first request is still in flight answers 409 at once with a request with this idempotency key is still in flight, and the remedy is to retry once the first has answered.

    Keys are scoped to the environment the request acts inside, and to its reset: one environment's key never answers another environment's request, and a key used before a sandbox reset runs afresh after it.

    An operation that acts on a workspace or on the account rather than inside an environment, such as creating a workspace or requesting go-live in the dashboard, scopes its keys to the caller and to its path, so the same key sent for another workspace is a separate request and never a replay.

Request body

  • failing_sincestring <date-time>required

    When the endpoint is to have been failing since. Not later than now. RFC3339.

Responses

The endpoint, failing since failing_since, with the rule applied.

  • idstringrequired

    The endpoint's own identifier.

  • objectstringrequired

    The object's type, always webhook_endpoint.

  • environment_idstring <uuid>required

    The environment whose events this endpoint receives. An endpoint receives the events of one environment and no other, so a sandbox endpoint never receives a live environment's events.

  • livemodebooleanrequired

    true when environment_id names a live environment and false in a sandbox. It is carried on the object itself, so a payload read on its own, a logged response or a webhook body, still says which side of the boundary it came from.

  • urlstring <uri>required

    Where deliveries are sent.

    Show full description

    An endpoint registered through this API holds an absolute https URL on port 443 with a public destination (the rules are on POST /webhook-endpoints); one registered before it may hold a URL those rules refuse, which keeps receiving until it is changed. It is unique inside the environment: two endpoints on one URL would double every delivery to it.

  • namestringrequired

    What this endpoint is called, for the people reading the list rather than for Stridge.

Show 9 more fields
  • enabled_eventsarray<string>required

    Which events to send here: webhook event types this reference documents, or ["*"], every one of those types but webhook_endpoint.ping, types added later included.

    Show full description

    Which events reach the endpoint is the delivery policy's enabled_events rule: an endpoint created through /v2 is sent only the events /v2 shows. An endpoint names at least one type: subscribing to nothing is an endpoint that never receives anything, which is a mistake no client means to make and none can express here. A legacy endpoint registered with no list reads []: it receives nothing.

  • event_payloadstringrequiredenum thin · legacy

    The body this endpoint receives, fixed for its whole life. thin, every endpoint created through this API: the ThinEvent of every type, which names the object and carries no copy of it. legacy, every other endpoint: the full legacy body of each type, unchanged.

    Show full description

    It never changes: an update naming it is refused. To move to thin events, create a new endpoint, run it beside the old one (both receive each event under the same webhook-id, so a receiver deduplicating on it acts once), then delete the old one.

  • is_activebooleanrequired

    Whether a person has the endpoint on. An inactive endpoint is skipped rather than queued, so events that occur while it is off are not delivered when it comes back on. An endpoint Stridge disabled for failing stays is_active: true; its status says it is disabled.

  • statusstringrequiredenum enabled · disabled

    Whether events are sent to the endpoint. disabled names why in disabled_reason: a person turned it off (is_active: false), or Stridge disabled it after three days in which no delivery to it answered 2xx, which only POST /webhook-endpoints/{endpoint_id}/enable undoes.

    Show full description

    A disabled endpoint's pending retries stop and new events are not sent to it.

  • disabled_reasonstring | nullrequiredenum failing · user · null

    Why a disabled endpoint is disabled: failing, three days with no 2xx, or user, a person turned it off. null while it is enabled.

  • failing_sincestring | null <date-time>required

    When the endpoint's first failed delivery happened since a delivery to it last answered 2xx, or null while it is not failing.

    Show full description

    While the endpoint is enabled, any 2xx ends it; a disabled endpoint keeps it, whatever a ping or a resend to it answers, until POST /webhook-endpoints/{endpoint_id}/enable, so the re-enable replays every event it missed. After two days failing the workspace's owners get one notice for the endpoint, in the dashboard; after three it is disabled. RFC3339 UTC, Z suffixed.

  • disable_atstring | null <date-time>required

    When a failing endpoint is disabled unless a delivery to it answers 2xx first: failing_since plus three days. null while it is not failing.

  • created_atstring <date-time>required

    When the endpoint was registered. RFC3339 UTC, Z suffixed. It is the default sort, newest first.

  • updated_atstring <date-time>required

    When the endpoint was last changed.

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/sandbox/test-helpers/webhook-endpoints/string/failing-since" \
  -X POST \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "failing_since": "2026-10-24T09:00:00Z"
}'

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

Response200
"id": "sub_00000000000000000000000001",
"object": "webhook_endpoint",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"url": "https://example.com/hooks/stridge",
"name": "Production receiver",
"deposit.confirmed",
"payout.confirmed"
],
"event_payload": "thin",
"is_active": true,
"status": "enabled",
"disabled_reason": null,
"failing_since": null,
"disable_at": null,
"created_at": "2026-05-20T11:03:00Z",
"updated_at": "2026-05-28T16:41:09Z"
}