Webhooks

Send test event

Queue a webhook.test event to the endpoint and return its delivery; needs an Idempotency-Key.

POST/v1/webhooks/{id}/testAPI key

Authorization

Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.

Headers

Idempotency-Keystring | null

Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED

Path parameters

idstringrequired

Responses

202application/json

The queued webhook.test delivery; it is sent in the background right after this response, so poll GET /v1/webhooks/{id}/deliveries for its status. A failed attempt retries like any event; a repeated Idempotency-Key returns the same delivery without sending again.

Show response attributes
idstringrequired
event_idstringrequired
event_typeenum<string>required

Available options: job.completed job.failed run.completed run.failed benchmark.completed budget.reached webhook.test

statusenum<string>required

Available options: pending delivered failed

attemptsintegerrequired
last_status_codeinteger | nullrequired
last_errorstring | nullrequired
next_attempt_atstring<date-time> | nullrequired

When the next attempt is due; null once delivered or given up.

created_atstring<date-time>required
delivered_atstring<date-time> | nullrequired
notestring | null

Set for a demo account: its deliveries are simulated and never sent.

400application/json

IDEMPOTENCY_KEY_REQUIRED: the Idempotency-Key header is missing or empty.

IDEMPOTENCY_KEY_REQUIRED
401application/json

UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.

UNAUTHENTICATED
403application/json

CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.

CSRF_ORIGIN_MISMATCH
404application/json

WEBHOOK_NOT_FOUND: no endpoint with this id belongs to the caller.

WEBHOOK_NOT_FOUND
429application/json

RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.

RATE_LIMITED
500application/json

Unexpected failure: INTERNAL_ERROR.

INTERNAL_ERROR
502application/json

AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).

AUTH_PROVIDER_REJECTED
503application/json

AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).

AUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLE

MCP tool

test_webhook: Send a signed webhook.test event to an endpoint and return the delivery (id, status, attempts) so the user can check the endpoint and its signature check. Reuse idempotency_key to retry without a second event. Free.