Ping a webhook endpoint

POST/webhook-endpoints/{endpoint_id}/ping

Send one endpoint a webhook_endpoint.ping: an event carrying no data, delivered to that endpoint and to no other, as a genuine signed request.

It exists so an endpoint can be proved end to end before anything real depends on it. The request is signed with the endpoint's own secret and is recorded like any other attempt, which the dashboard shows, so a receiver that verifies the ping verifies everything that follows. What it proves is the wire, not the payloads: to see a real event arrive, simulate a deposit in a sandbox and receive what that produces.

  • It goes to the endpoint whatever its enabled_events say, because nobody subscribes to a ping; it is delivered because it was sent. It is delivered to an endpoint that is turned off as well, since proving an endpoint before switching it on is exactly when a ping is wanted. It works in a live environment and in a sandbox alike: it moves no money and names nothing but the endpoint.

    The answer is the event, with event_payload null and related_object { "object": "webhook_endpoint", "id": <endpoint_id> }. It is answered as soon as it is RECORDED, so its status is pending and its processed_at is null in this answer whatever becomes of the delivery; a caller that wants to know what happened reads the event back, or reads its deliveries.

  • It is a separate act from the dashboard's test event, which the delivery policy's mock_events describes: that one sends a placeholder body of a chosen type to every legacy endpoint subscribed to it, while a ping proves the wire to one endpoint, names no event type and carries no payload a receiver could take for a real event.

    Errors

    The closed set of codes: environment_required (400), parameter_unknown (400, a query parameter the ping does not take), header_invalid (400, an Idempotency-Key longer than 255 characters, or an X-Stridge-Environment sent beside a secret key), authentication_required, token_invalid and api_key_not_accepted (401), permission_denied (403, a developer or a viewer in live, a viewer in a sandbox, a secret key without webhook.deliver), membership_suspended (403), environment_not_found (404, an environment the caller cannot reach, or one that never existed), resource_missing (404, an endpoint this environment does not hold, or one that never existed), environment_provisioning (409, a sandbox not ready yet), environment_resetting (409, a sandbox whose reset is still running; the ping records nothing), idempotency_key_reused (400) and rate_limited (429). The ping takes no body, so the request a key names is the endpoint it was sent to: the same key sent to the same endpoint answers the first ping rather than sending another, and the same key sent to another endpoint is refused. A replay is answered even after the endpoint has been deleted.

Parameters

Path

  • endpoint_idstringrequired

    The endpoint to ping.

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.

Responses

The ping was recorded and dispatched to the endpoint.

  • idstringrequired

    The event's identifier: its idempotency_key, under the name every object carries its own.

  • objectstringrequired

    The object's type, always webhook_event.

  • idempotency_keystringrequired

    The event's own identifier, and the value a receiver deduplicates on. Every path addressing a single event addresses it by this.

  • environment_idstring <uuid>required

    The environment the event happened in. It is carried on the object rather than implied by the request, so an event detached from the request it arrived on still says which world it belongs to.

  • 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.

  • event_idstringrequired

    The identifier carried inside the delivered envelope, for a receiver correlating what it stored against what it was sent. It is not an address on this contract.

Show 8 more fields
  • event_typestringrequired

    What happened, one of the webhook event types this reference documents, a closed set. An endpoint receives an event only when its enabled_events names this one; every endpoint names at least one type, so none receives everything by naming nothing.

    Show full description

    The one exception is webhook_endpoint.ping, which no endpoint subscribes to: it is delivered to the one endpoint it was sent to, whatever that endpoint's enabled_events say.

  • event_versionstringrequired

    The schema version of event_payload, so a receiver can tell a payload it understands from one it does not.

  • event_timestring <date-time>required

    When the thing the event describes happened, which is not when the event was recorded.

  • event_payloadanyrequired

    What happened, in the shape event_version names. It is an opaque passthrough on this contract: Stridge delivers it and the receiver interprets it.

    Show full description

    It is null on a webhook_endpoint.ping, which carries no data: the delivery arriving is the whole of what it says.

  • The Stridge object the event is about, or null for an event about no one object. A webhook_endpoint.ping names the endpoint it was sent to.

    • objectstringrequired

      The kind of object, in snake_case and singular: deposit, payout, webhook_endpoint. The value set is open: a family that starts emitting events adds its name here, and a client renders an unfamiliar one as the string itself.

    • idstringrequired

      The object's identifier, as its own family addresses it.

  • statusstringrequiredenum pending · processing · completed · failed

    How far Stridge got in telling you. pending is recorded but not yet attempted, processing is in flight, completed means every matching endpoint accepted it, and failed means at least one did not.

    Show full description

    An event no active endpoint subscribes to is completed, with its processed_at, as soon as delivery finds no one to send it to: no endpoint was owed it, so nothing is outstanding, and pending is kept for events Stridge still has to attempt.

  • processed_atstring | null <date-time>required

    When Stridge stopped working on the event, or null while it has not. Only a completed or failed event carries one.

  • created_atstring <date-time>required

    When Stridge recorded the event. RFC3339 UTC, Z suffixed. It is the default sort, newest first.

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/ping" \
  -X POST \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

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

Response200
"id": "8f14e45f-ceea-467a-9d0e-2b1c5f0a3d47",
"object": "webhook_event",
"idempotency_key": "8f14e45f-ceea-467a-9d0e-2b1c5f0a3d47",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"event_id": "0d9a7c52-5f3e-4c11-8a70-6e2b1f4c9d10",
"event_type": "deposit.confirmed",
"event_version": "1.0",
"event_time": "2026-05-30T09:14:22Z",
"transaction_id": "tx_9f2b41ca",
"status": "confirmed",
"amount": "0.05",
"currency": "ETH"
},
"object": "deposit",
"id": "5b8e2f14-7c3a-4d91-a6e0-2f9b1c7d4e83"
},
"status": "completed",
"processed_at": "2026-05-30T09:14:24Z",
"created_at": "2026-05-30T09:14:22Z"
}