Trigger Ownership Verification
/v1/webhook-endpoints/{id}/verifyTrigger ownership verification (the second stage of the two-stage protocol).
Send Authorization: Bearer <API_KEY> in the request headers. Which resources an API Key can reach is determined by its current authorization scope.
Request
Base URL: https://api.bluehola.com
Parameters
| Name | In | Required | Type / constraints | Description |
|---|---|---|---|---|
id | path | Yes | string | The callback endpoint ID, whe_... |
Response
| Status | Description |
|---|---|
201 | Created |
4xx | Client error |
For the common error envelope and how to handle it, see Error Codes.
Notes
Why two stages
The secret is only returned in the creation response, and the caller can only save it after receiving that response. If the platform sent the verification challenge immediately at creation time, the receiving end would not yet have a secret to verify against, the challenge would inevitably fail, and the endpoint would be stuck at pending forever. So the order is fixed: create (get the secret) → save it yourself → call this endpoint.
The shape of the challenge
The platform synchronously POSTs a webhook.verification event to the endpoint, with data.challenge holding a one-time random value, signed exactly the way a normal delivery is — which is the whole point of the verification: if this one verifies, every subsequent real event will too. The receiver must return a 2xx and echo the same challenge back in the response JSON (either at the top level or as data.challenge).
Outcome
Success → the status becomes active and delivery starts. Failure → it stays pending (it does not become disabled), with the reason recorded in metadata.last_verification_error; once the receiving end is fixed, call it again. If the receiving end's failure response carries a well-formed CF-Ray, the failure reason includes that value, so the receiver's administrators can locate the block record. The challenge times out after 5s, and only the first 4 KB of the response body is read.