> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rotavision.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Webhook

> Register a webhook endpoint. The signing secret appears in THIS
response; receivers verify X-Sakshi-Signature with it. Registration is
itself evidence (attested), like ingest keys.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/webhooks
openapi: 3.1.0
info:
  title: Sakshi — Agent Governance API
  description: >-
    Registry (KYA), decision flight recorder, bounded autonomy, evidence packs,
    fairness screens. Auth: bearer ingest keys create evidence; OIDC JWTs with
    governance roles mutate state.
  version: 0.1.0
servers:
  - url: https://demo.rotavision.com
    description: Public demo (read-only, synthetic data)
  - url: https://{host}
    description: Your Sakshi deployment (single-tenant, in your environment)
    variables:
      host:
        default: sakshi.your-company.internal
security:
  - bearerAuth: []
paths:
  /api/v1/webhooks:
    post:
      tags:
        - register
      summary: Create Webhook
      description: |-
        Register a webhook endpoint. The signing secret appears in THIS
        response; receivers verify X-Sakshi-Signature with it. Registration is
        itself evidence (attested), like ingest keys.
      operationId: create_webhook_api_v1_webhooks_post
      parameters:
        - name: url
          in: query
          required: true
          schema:
            type: string
            minLength: 8
            maxLength: 500
            title: Url
        - name: events
          in: query
          required: true
          schema:
            type: string
            minLength: 3
            maxLength: 200
            description: 'comma-separated: kill_switch,breaker,incident,escalation'
            title: Events
          description: 'comma-separated: kill_switch,breaker,incident,escalation'
        - name: description
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 300
              - type: 'null'
            title: Description
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Create Webhook Api V1 Webhooks Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ingest API key or OIDC JWT. See /authentication.

````