{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":21248,"path":"integrate-applications/integration-hub/govnotify-wbhk.md","title":"Set up the webhook for the GovNotify spoke","bundle":null,"doc_type":null,"release":"australia","body":"\n# Set up the webhook for the GovNotify spoke\n\nConfigure a webhook to subscribe to GovNotify with a ServiceNow callback URL.\n\n## Before you begin\n\n-   [Set up the GovNotify spoke](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/govnotify-setup.md)\n-   Role required: admin\n\n## Procedure\n\n1.  Copy the scripted REST API URL for the GovNotify spoke from your ServiceNow instance.\n\n    1.  Navigate to **System Web Services** &gt; **Scripted REST APIs**.\n\n    2.  Open the record, **GovNotify Callback**.\n\n    3.  Copy and record the value of **Base API path** for later use.\n\n2.  Add the callback URL in GovNotify account.\n\n    1.  Log in to your GovNotify account as admin.\n\n    2.  Navigate to **API integration** and click **Callbacks**.\n\n        \\[Omitted image \"govnotify-callback.png\"\\] Alt text: Callback URL.\n\n    3.  On the form, enter these values.\n\n        |Field|Description|\n        |-----|-----------|\n        |URL|Callback URL in this format: `https://<ServiceNow-instance>.com/<base-api-path>`.|\n        |Bearer token|Token to authenticate the request. Enter a token as per your requirement.|\n\n    4.  Click **Save**.\n\n3.  Create client record in your ServiceNow instance.\n\n    1.  Navigate to **GovNotify Spoke** &gt; **Client Details**.\n\n    2.  Click **New**.\n\n    3.  On the form, fill these values.\n\n        |Field|Description|\n        |-----|-----------|\n        |Name|Name to identify the client record.|\n        |Authorization Key|Bearer token you had provided in the GovNotify account.|\n\n    4.  Click **Submit**.\n\n4.  Create webhook answer record in your ServiceNow instance.\n\n    1.  Navigate to **GovNotify Spoke** &gt; **Webhook Decision Answers**.\n\n    2.  Click **New**.\n\n    3.  On the form, fill these values.\n\n        |Field|Description|\n        |-----|-----------|\n        |Subflow|Subflow that needs to be triggered. Select the default subflow or the subflow you had configured as per your requirement.|\n        |Description|Description of the webhook decision answer.|\n\n    4.  Click **Submit**.\n\n5.  Configure the webhook decision policy in your ServiceNow instance.\n\n    1.  Navigate to **System Definition** &gt; **Decision Tables**.\n\n    2.  Open the record, **GovNotify Webhook Decision Policy**.\n\n    3.  In the **Decisions** tab, open the **Default decision** record.\n\n    4.  For **Answer**, select the sys\\_ID of the webhook answer record you had created.\n\n    5.  Click **Update**.\n\n        The subflow that is configured in the webhook answer record is triggered when conditions in the webhook decision policy are met.\n\n\n"}}