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

# Create a webhook

> Manage this in Settings → Integrations, or use a signed-in Italic account session. API keys cannot manage credentials or webhook destinations.



## OpenAPI

````yaml /openapi.json post /webhooks
openapi: 3.1.0
info:
  title: Italic API
  version: 2.0.0
  description: >-
    Recordings, devices, and notifications. Text syncs to Italic; audio stays on
    the client.
servers:
  - url: https://app.italic.com/api/v2
security: []
tags:
  - name: Recordings
  - name: Devices
  - name: API keys
  - name: Webhooks
  - name: Events
paths:
  /webhooks:
    post:
      tags:
        - Webhooks
      summary: Create a webhook
      description: >-
        Manage this in Settings → Integrations, or use a signed-in Italic
        account session. API keys cannot manage credentials or webhook
        destinations.
      operationId: createWebhook
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWebhook'
      responses:
        '200':
          description: >-
            Success. Writes without read permission return an ID and revision
            only.
          headers:
            X-Request-Id:
              schema:
                type: string
              description: Request identifier for troubleshooting.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResult'
        default:
          description: Request failed. Errors include a stable code and a readable message.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - accountSession: []
components:
  schemas:
    CreateWebhook:
      type: object
      properties:
        url:
          type: string
          minLength: 1
          maxLength: 2048
        events:
          type: array
          minItems: 1
          maxItems: 3
          items:
            type: string
            enum:
              - recording.created
              - recording.updated
              - recording.deleted
      required:
        - url
        - events
      additionalProperties: false
    WebhookResult:
      type: object
      properties:
        webhook:
          $ref: '#/components/schemas/Webhook'
        secret:
          type: string
      required:
        - webhook
        - secret
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              minLength: 0
              maxLength: 100
            message:
              type: string
              minLength: 0
              maxLength: 1000
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
    Webhook:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 256
          pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]*$
        url:
          type: string
          minLength: 0
          maxLength: 2048
        events:
          type: array
          items:
            type: string
        createdAt:
          type: integer
          minimum: 0
          maximum: 9007199254740991
      required: []
      additionalProperties: false
  securitySchemes:
    accountSession:
      type: http
      scheme: bearer
      description: A signed-in Italic account session. An API key cannot manage access.

````