Webhooks

Update endpoint

Change url, format, events, or enabled; enabling again clears the disabled reason.

PATCH/v1/webhooks/{id}API key

Authorization

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

Path parameters

idstringrequired

Body

urlstring<uri> | null

minLength: 1

maxLength: 2083

eventsenum<string>[] | null

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

minItems: 1

formatenum<string> | null

Available options: json slack discord

enabledboolean | null

Responses

200application/json

Successful Response

Show response attributes
idstringrequired
urlstringrequired
eventsenum<string>[]required

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

formatenum<string>required

Available options: json slack discord

enabledbooleanrequired
disabled_reasonstring | null

Why sending stopped on its own (a 410 Gone answer); cleared when enabled again.

created_atstring<date-time>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
409application/json

WEBHOOK_LIMIT_REACHED: the caller already has 5 endpoints. Nothing is stored.

WEBHOOK_LIMIT_REACHED
422application/json

VALIDATION_ERROR: malformed body, url not https to a public host (a hosted server refuses localhost and hosts that are or resolve to private, loopback, or link-local addresses, or do not resolve; plain http only to localhost on a local server), or events empty or naming an unknown event. Nothing is stored.

VALIDATION_ERROR
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

update_webhook: Change a webhook endpoint's url, events, format or enabled flag; omitted fields stay. Enabling clears disabled_reason. Free.