Skip to main content
PATCH
Update a Webhook

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta

Path Parameters

id
string
required

Webhook ID.

Body

application/json

Webhook configuration fields to update.

Webhook configuration changes. Omitted fields remain unchanged. At least one field is required, and field values cannot be null.

name
string

Display name. Set to an empty string to clear it.

Example:

"Production events"

url
string

HTTPS URL for future event notifications. Must not contain a username, password, or fragment (#).

Minimum string length: 1
Example:

"https://example.invalid/hook"

event_types
enum<string>[]

Business event types to subscribe to. Specify at least one type, without duplicates.

Minimum array length: 1

Business event types available for Webhook subscriptions.

Available options:
session.status_run_started,
session.status_idled,
session.status_terminated,
session.thread_created,
session.thread_idled,
session.thread_terminated,
session.updated,
session.deleted,
vault.created,
vault.archived,
vault.deleted,
vault_credential.created,
vault_credential.archived,
vault_credential.deleted,
vault_credential.refresh_failed,
agent.created,
agent.updated,
agent.archived,
trigger.created,
trigger.updated,
trigger.paused,
trigger.unpaused,
trigger.archived,
trigger_run.started,
trigger_run.succeeded,
trigger_run.failed,
trigger_run.skipped,
environment.created,
environment.updated,
environment.build_ended,
environment.archived,
environment.deleted,
memory_store.created,
memory_store.archived,
memory_store.deleted
Example:
enabled
boolean

Enable or disable this Webhook. Enabling clears the disabled reason. Disabling stops new business events; existing events continue to be sent and retried.

Example:

true

Response

The Webhook was updated.

A Webhook configured for a project.

id
string
required

Webhook ID.

Minimum string length: 1
Example:

"webhook_01h455vb4pex5vsknk084sn02q"

name
string
required

Display name. May be an empty string.

Example:

"Production events"

url
string
required

HTTPS URL that receives event notifications.

Example:

"https://example.invalid/hook"

event_types
enum<string>[]
required

Business event types this Webhook subscribes to.

Business event types available for Webhook subscriptions.

Available options:
session.status_run_started,
session.status_idled,
session.status_terminated,
session.thread_created,
session.thread_idled,
session.thread_terminated,
session.updated,
session.deleted,
vault.created,
vault.archived,
vault.deleted,
vault_credential.created,
vault_credential.archived,
vault_credential.deleted,
vault_credential.refresh_failed,
agent.created,
agent.updated,
agent.archived,
trigger.created,
trigger.updated,
trigger.paused,
trigger.unpaused,
trigger.archived,
trigger_run.started,
trigger_run.succeeded,
trigger_run.failed,
trigger_run.skipped,
environment.created,
environment.updated,
environment.build_ended,
environment.archived,
environment.deleted,
memory_store.created,
memory_store.archived,
memory_store.deleted
Example:
enabled
boolean
required

Whether this Webhook receives new business events. Existing events continue to be sent and retried after it is disabled.

Example:

true

created_at
string<date-time>
required

Creation time.

Example:

"2026-11-05T00:00:00Z"

updated_at
string<date-time>
required

Time the Webhook configuration was last updated.

Example:

"2026-11-05T00:00:00Z"

disabled_reason
enum<string>

Why the Webhook is disabled. Omitted while enabled.

Available options:
manual,
delivery_failures
Example:

"manual"