---
title: Enable webhook endpoint
slug: enable-webhook-endpoint
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "v-TYOGxpd68Kmwe28srPc",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/webhook-endpoints/{id}:enable",
    "servers": [
      {
        "url": "https://api.nue.io/webhook-endpoints/{id}:enable",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/webhook-endpoints/{id}:enable",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Enable webhook endpoint",
    "description": "<p>Activate a webhook endpoint to start receiving notifications for the configured events. Once enabled, your endpoint will receive HTTP POST requests whenever the specified billing events occur.</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": "enable an webhook endpoint success",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "response after enable a webhook-endpoint",
            "code": "webhook enabled"
          }
        ]
      },
      {
        "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": "5D2H5nxTKMhd9H10eBtiF",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/webhook-endpoints/{id}:enable \\\n     --header 'accept: application/json'"
        },
        {
          "id": "qZww4aj9RVaKPPxW-ULNS",
          "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: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/webhook-endpoints/{id}:enable\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "lIhjFPS1Jhnbx8PfeMlql",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/webhook-endpoints/{id}:enable\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "j3VXC2T4uvLvKfa66j-jg",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/webhook-endpoints/{id}:enable\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "5D2H5nxTKMhd9H10eBtiF"
    },
    "results": {
      "languages": [
        {
          "id": "5oAGWsM9hi7LGPM9r7lZ5",
          "language": "200",
          "code": "// enable an webhook endpoint success\n",
          "subExamples": [
            {
              "label": "response after enable a webhook-endpoint",
              "code": "webhook enabled"
            }
          ]
        },
        {
          "id": "wQ3Hmif1nCegz3KYb0Ixl",
          "language": "400",
          "code": "// Bad Request\n"
        },
        {
          "id": "iZhHXMByiz8fReNs-GRTM",
          "language": "404",
          "code": "// Not Found\n"
        },
        {
          "id": "ml3JC8rhbgVdq_-nXYPbp",
          "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": "5oAGWsM9hi7LGPM9r7lZ5"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}