Fire a synthetic test event at your user webhook
POST
/account/test-user-webhook
bearer_auth
Synchronous user-webhook test delivery. Performs ONE outbound `POST` to the account's configured webhook — or to the `url` given in the request body — carrying the documented `PubSubPushEnvelope` wrapping a synthetic Google `UserEvent` whose `eventId` is prefixed `test-` (format-identical to production events). Sent with `Content-Type: application/json` and, when a key is in effect, an `x-api-key` header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization |
header | string | yes | `Bearer <token>` obtained from `POST /login`. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
url |
string | no | Custom webhook URL to test instead of the stored one — same https-only/SSRF validation as PATCH /account. Falls back to the stored `webhook_url` when omitted or blank. |
api_key |
string | no | API key sent as `x-api-key` alongside `url`. Falls back to the stored `webhook_api_key` when omitted or blank. |
{
"url": "https://example.com/webhook",
"api_key": "secret"
}
Responses
| Status | Description |
|---|---|
200 |
The remote endpoint answered and the delivery result is echoed. Any answer below 400 counts as delivered — including 3xx redirects (delivered: true with the remote status echoed). |
400 |
Invalid JSON, an unknown field, a failing `url`/`api_key` validation, or no effective webhook configured (`webhook not configured`). |
401 |
Missing authorizer claims (`unauthorized`). |
404 |
No account row for the caller (`account not found`). |
409 |
Account exists but is not `status: ready` (`account not ready`). |
502 |
The remote webhook returned a 4xx/5xx status or the delivery failed at the network level (`webhook delivery failed (HTTP <code>)` / `webhook delivery failed (<reason>)`). An unexpected handler fault returns the generic `{"error": "internal error, please try again"}` — no internals are leaked. |
200 example
{
"delivered": true,
"status": 200,
"event_id": "test-0b3adc62-e4f0-4d51-a9de-2f5f047cb42f"
}