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

# Create Webhook Endpoint

> Create a notification webhook endpoint for the org.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/notifications/webhooks
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/notifications/webhooks:
    post:
      tags:
        - notification-webhooks
      summary: Create Webhook Endpoint
      description: Create a notification webhook endpoint for the org.
      operationId: notification_webhooks_create_webhook_endpoint
      parameters:
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWebhookEndpointRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpointCreateResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    CreateWebhookEndpointRequest:
      properties:
        channel:
          $ref: '#/components/schemas/WebhookChannelType'
        url:
          type: string
          maxLength: 2048
          title: Url
        label:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Label
        events:
          items:
            $ref: '#/components/schemas/WebhookEventType'
          type: array
          minItems: 1
          title: Events
          default:
            - deploy.succeeded
            - deploy.failed
      type: object
      required:
        - channel
        - url
      title: CreateWebhookEndpointRequest
      description: Request body for creating a webhook endpoint.
    WebhookEndpointCreateResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        org_id:
          type: string
          format: uuid
          title: Org Id
        channel:
          type: string
          title: Channel
        url:
          type: string
          title: Url
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
        events:
          items:
            type: string
          type: array
          title: Events
        is_active:
          type: boolean
          title: Is Active
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        signing_secret:
          type: string
          title: Signing Secret
      type: object
      required:
        - id
        - org_id
        - channel
        - url
        - label
        - events
        - is_active
        - created_at
        - updated_at
        - signing_secret
      title: WebhookEndpointCreateResponse
      description: >-
        Response for creating a webhook endpoint — includes the signing secret
        (one-time).
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    WebhookChannelType:
      type: string
      enum:
        - slack
        - discord
        - google_chat
      title: WebhookChannelType
      description: Supported webhook channel types.
    WebhookEventType:
      type: string
      enum:
        - deploy.succeeded
        - deploy.failed
      title: WebhookEventType
      description: Events that can trigger webhook notifications.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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