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

# Create a notification webhook for a client team



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json put /v1/team/client/{teamId}/notification-webhook
openapi: 3.0.0
info:
  title: Wirespeed API
  description: The public Wirespeed API. v1 is the first stable contract.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.wirespeed.co
security: []
tags: []
paths:
  /v1/team/client/{teamId}/notification-webhook:
    put:
      tags:
        - Team
      summary: Create a notification webhook for a client team
      operationId: TeamController_createClientNotificationWebhook
      parameters:
        - name: teamId
          required: true
          in: path
          description: The client team ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateNotificationWebhookDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateNotificationWebhookResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '401':
          description: ''
      security:
        - bearer: []
components:
  schemas:
    CreateNotificationWebhookDto:
      type: object
      properties:
        name:
          type: string
          description: Human-readable label for this webhook destination
        url:
          type: string
          description: URL to POST notification payloads to
        enabled:
          type: boolean
          default: true
        notificationTypes:
          type: array
          nullable: true
          description: >-
            Notification types that trigger this webhook. Null/omitted means all
            types.
          items:
            type: string
            enum:
              - NEW_CASE_ESCALATION
              - NEW_CASE_AUTO_CONTAINED
              - NEW_SECURITY_EVENT
              - NEW_CRITICAL_DEFECT
              - ACCOUNT_SUMMARY
              - INTEGRATION_HEALTH
              - ACCOUNT_BILLING
            x-extensible-enum: true
      required:
        - name
        - url
    CreateNotificationWebhookResponse:
      type: object
      properties:
        secret:
          type: string
          description: The generated signing secret (shown once)
        webhook:
          $ref: '#/components/schemas/NotificationWebhook'
      required:
        - secret
        - webhook
    HttpError:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: number
        code:
          type: string
          description: >-
            Stable machine-readable error code. Clients should branch and
            translate on this instead of `message`.
        params:
          type: object
          description: Values interpolated into the message for `code`.
          additionalProperties:
            oneOf:
              - type: string
              - type: number
              - type: boolean
            nullable: true
        validationErrors:
          description: >-
            Per-property failures when `code` is `VALIDATION_FAILED` from
            request validation.
          type: array
          items:
            $ref: '#/components/schemas/HttpValidationIssue'
      required:
        - message
        - statusCode
    NotificationWebhook:
      type: object
      properties:
        id:
          type: string
        teamId:
          type: string
        name:
          type: string
        url:
          type: string
        enabled:
          type: boolean
        notificationTypes:
          type: array
          nullable: true
          items:
            type: string
            enum:
              - NEW_CASE_ESCALATION
              - NEW_CASE_AUTO_CONTAINED
              - NEW_SECURITY_EVENT
              - NEW_CRITICAL_DEFECT
              - ACCOUNT_SUMMARY
              - INTEGRATION_HEALTH
              - ACCOUNT_BILLING
            x-extensible-enum: true
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - teamId
        - name
        - url
        - enabled
        - createdAt
        - updatedAt
    HttpValidationIssue:
      type: object
      properties:
        property:
          type: string
          description: Dotted path of the invalid property.
        constraint:
          type: string
          description: >-
            class-validator constraint name; clients translate
            `errors:validation.<constraint>`.
        params:
          type: object
          description: Values interpolated into the constraint message.
          additionalProperties:
            oneOf:
              - type: string
              - type: number
              - type: boolean
            nullable: true
        code:
          type: string
          description: Catalog code overriding the constraint translation.
      required:
        - property
        - constraint
        - params
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Team API key sent as a Bearer token. Create a key in Wirespeed under
        Settings → Team. See
        https://docs.wirespeed.co/api-reference/authentication.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.