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

# Delete Webhook Integration

> Delete a webhook integration. Requires `manage-integrations` ability.

# Delete Webhook Integration

Remove a webhook integration from a form.

## Authentication & Scope

This endpoint requires a **Personal Access Token** with the `manage-integrations` ability.

## Request

<ParamField path="form" type="number" required>
  The ID of the form containing the webhook.
</ParamField>

<ParamField path="integrationid" type="number" required>
  The ID of the webhook integration to delete.
</ParamField>

```http theme={null}
DELETE /open/forms/{form}/integrations/{integrationid} HTTP/1.1
Host: api.opnform.com
Authorization: Bearer <token>
```

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://api.opnform.com/open/forms/123/integrations/42' \
    -H 'Authorization: Bearer YOUR_PAT'
  ```
</RequestExample>

## Response

`200 OK` – Webhook deleted successfully.

<ResponseExample>
  ```json Success theme={null}
  {
    "message": "Form Integration was deleted."
  }
  ```
</ResponseExample>

`403 Forbidden` – The token does not have `manage-integrations` ability or insufficient form permissions.

`404 Not Found` – Form or integration not found.


## OpenAPI

````yaml delete /open/forms/{form}/integrations/{integrationid}
openapi: 3.0.1
info:
  title: OpnForm API
  description: API for interacting with OpnForm, primarily used for Zapier integration
  version: 1.0.0
servers:
  - url: https://api.opnform.com
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: Create and manage workspaces.
  - name: Workspace Users
    description: Manage users within a workspace.
  - name: Forms
    description: Manage and retrieve forms.
  - name: Submissions
    description: Access and manage form submissions.
  - name: Integrations
    description: Manage form integrations (webhooks) via API.
  - name: Zapier
    description: Legacy endpoints for the Zapier integration.
paths:
  /open/forms/{form}/integrations/{integrationid}:
    delete:
      tags:
        - Integrations
      summary: Delete Webhook Integration
      description: Delete a webhook integration. Requires `manage-integrations` ability.
      parameters:
        - name: form
          in: path
          required: true
          schema:
            type: number
            description: The ID of the form.
        - name: integrationid
          in: path
          required: true
          schema:
            type: number
            description: The ID of the integration.
      responses:
        '200':
          description: Webhook deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Form Integration was deleted.
        '403':
          description: Forbidden – insufficient permissions
        '404':
          description: Form or integration not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Personal Access Token
      x-bearer-scopemap:
        workspaces-read: Read access to workspaces
        workspaces-write: Write access to workspaces
        workspace-users-read: Read access to workspace users
        workspace-users-write: Write access to workspace users
        forms-read: Read access to forms
        forms-write: Write access to forms
        manage-integrations: Manage form integrations (webhooks)

````