latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-216381,9552.9 MB

f2cf3228f366

Hook

Create

Invokes the c1.api.hooks.v1.HooksService.Create method.

post/api/v1/hooks

Request body

descriptionstring

The description field.

displayNamestring required

The displayName field.

enabledboolean

The enabled field.

event'HOOK_EVENT_TYPE_UNSPECIFIED' | 'HOOK_EVENT_TYPE_PRE_TOOL_USE' | 'HOOK_EVENT_TYPE_POST_TOOL_USE' | 'HOOK_EVENT_TYPE_PRE_OUTPUT'

The event field.

managedByGuardrailsboolean

The managedByGuardrails field.

priorityinteger

The priority field.

Response

Successful response