> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/014_webhooks/004__remove_company_webhook.md).

# Remove Company Webhook

GraphQL endpoint: `/company`

Removes one of the current company's webhooks by ID. No further events are delivered to it. Returns the removed webhook.

## Query

```graphql
mutation (
  $id: ID!
) {
  removeCompanyWebhook (
    id: $id
  ) {
    id
    url
    bearerToken
    customHeaders
    name
    receiveSubscriptionEvents
    receiveOptOutEvents
    b2bConnectionRequestReceivedWebhook
    b2bConnectionRequestResponseWebhook
    b2cConnectionRequestResponseWebhook
    c2bConnectionRequestReceivedWebhook
    b2cSubscriptionRequestResponseWebhook
    companySocialNetworkStatusChangeWebhook
    b2bFormInstanceSubmissionRequestReceivedWebhook
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000001"
}
```

## Response

```json
{
  "data": {
    "removeCompanyWebhook": {
      "b2bConnectionRequestReceivedWebhook": true,
      "b2bConnectionRequestResponseWebhook": true,
      "b2bFormInstanceSubmissionRequestReceivedWebhook": true,
      "b2cConnectionRequestResponseWebhook": true,
      "b2cSubscriptionRequestResponseWebhook": true,
      "bearerToken": "TestBearerToken",
      "c2bConnectionRequestReceivedWebhook": true,
      "companySocialNetworkStatusChangeWebhook": true,
      "customHeaders": {
        "X-Custom-Header": "CustomValue"
      },
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "webhook",
      "receiveOptOutEvents": true,
      "receiveSubscriptionEvents": true,
      "url": "https://localhost:54321/webhook"
    }
  }
}
```
