For the complete documentation index, see llms.txt. This page is also available as Markdown.

ServiceNow

Configure a Webhook in Soda Cloud to connect to your ServiceNow account.

In ServiceNow, you can create a Scripted REST API that enables you to prepare a resource to work as an incoming webhook. Use the ServiceNow Resource Path in the URL field in the Soda Cloud integration setup.

This example offers guidance on how to set up a Scripted REST API Resource to generate an external link, which Soda Cloud displays in the Incident Details; see image below. When you change the status of a Soda Cloud incident, the webhook also updates the status of the SNOW issue that corresponds with the incident.

Refer to Webhook API for detailed information.

Configuring OAuth 2.0 on an outbound webhook (via API)

When OAuth is configured, Soda acts as the OAuth client: before each webhook delivery it fetches an access token from tokenUrl using the client_credentials grant and attaches it as Authorization: Bearer <token>.

You do not set an Authorization header yourself. Instead, any Authorization header you put in headers is stripped and replaced. Auth is configured with fields, not headers.

OAuth fields

Field
Required
Descriptio

tokenUrl

yes

Token endpoint (e.g. https://<instance>.service-now.com/oauth_token.do). Must be publicly resolvable.

clientId

yes

OAuth client id.

clientSecret

yes*

Client secret. Write-only: never returned on read; on update omit to keep, or send a new value to replace.

scope

no

Optional for ServiceNow.

Create — POST /api/command?createIntegration (needs Manage organisation settings):

Update — POST /api/command?updateIntegration (secret omitted → preserved; type: "webhook" still required):

Runtime behaviour — token cached per integration until expiry (60s safety margin; 5-min default if no expires_in); on 401 Soda invalidates + refetches + retries once; token request is form-urlencoded with grant_type=client_credentials.

Set up REST APIs

The following steps offer a brief overview of how to set up a ServiceNow Scripted REST API Resource to integrate with a Soda Cloud webhook. Reference the ServiceNow documentation for details:

  1. In ServiceNow, start by navigating to the All menu, then use the filter to search for and select Scripted REST APIs.

  2. Click New to create a new scripted REST API. Provide a name and API ID, then click Submit to save.

  3. In the Scipted Rest APIs list, find and open your newly-created API, then, in the Resources tab, click New to create a new resource.

  4. Provide a Name for your resource, then select POST as the HTTP method.

  5. In the Script field, define a script that creates new tickets when a Soda Cloud incident is opened, and updates existing tickets when a Soda Cloud incident status is updated. Use the example below for reference. You may also need to define Security settings according to your organizations authentication rules.

  6. Click Submit, then copy the value of the Resource path to use in the URL field in the Soda Cloud integration setup.


You are not logged in to Soda and are viewing the default public documentation. Learn more about Documentation access & licensing.

If you do have a Soda license, make sure to log in to Soda Cloud in this same browser.

Last updated

Was this helpful?