---
title: Delete webhook endpoint
slug: delete-webhook-endpoint
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "ZnK_ZOMcM36dmTeIKa_u4",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://api.nue.io/webhook-endpoints/{id}",
    "servers": [
      {
        "url": "https://api.nue.io/webhook-endpoints/{id}",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/webhook-endpoints/{id}",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Delete webhook endpoint",
    "description": "<p>Delete a webhook endpoint given the id.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "id",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json",
            "*/*"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Delete an webhook endpoint success",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "response after delete an webhook endpoint",
            "code": "delete success"
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Not Found",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "500",
        "description": "webhook endpoint not found",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "webhook endpoint not found",
            "code": "{\n  \"title\": \"BAD_REQUEST\",\n  \"message\": \"Cannot find webhook endpoint with ID {{webhookId}}}\",\n  \"errorCode\": \"WEBHOOK_ENDPOINT_NOT_FOUND\"\n}"
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "9byYoEvY62i5a2U8fxT4F",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://api.nue.io/webhook-endpoints/{id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "Lm79TC6oiC17Kpey0K7Ld",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/webhook-endpoints/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "whSsjllTQ0OrDm02ePHWc",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/webhook-endpoints/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "IVBcFewAS0-AmM8XSiaoC",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/webhook-endpoints/{id}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "9byYoEvY62i5a2U8fxT4F"
    },
    "results": {
      "languages": [
        {
          "id": "em-uKV4zqwOgz6tHZk3Ag",
          "language": "200",
          "code": "// Delete an webhook endpoint success\n",
          "subExamples": [
            {
              "label": "response after delete an webhook endpoint",
              "code": "delete success"
            }
          ]
        },
        {
          "id": "0BWnVl6VvnJHZrIOfH4Rc",
          "language": "400",
          "code": "// Bad Request\n"
        },
        {
          "id": "bNSQkjAhh1l-0WXyNu0dr",
          "language": "404",
          "code": "// Not Found\n"
        },
        {
          "id": "tVBqFn5hwdLUpNEyR9ZTm",
          "language": "500",
          "code": "// webhook endpoint not found\n",
          "subExamples": [
            {
              "label": "webhook endpoint not found",
              "code": "{\n  \"title\": \"BAD_REQUEST\",\n  \"message\": \"Cannot find webhook endpoint with ID {{webhookId}}}\",\n  \"errorCode\": \"WEBHOOK_ENDPOINT_NOT_FOUND\"\n}"
            }
          ]
        }
      ],
      "selectedLanguageId": "em-uKV4zqwOgz6tHZk3Ag"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}