# ServiceNow

### Establishing a Connection&#x20;

#### 1. Connection Name

A user-friendly name for your connection. This helps you identify it among other connections in Stack AI.

#### 2. Instance URL

<figure><img src="https://3697023207-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFSlso1Kjob5CLDrh0dVn%2Fuploads%2FrkomGptliLTMqgDXhg78%2Fservicenow.png?alt=media&#x26;token=fd379e93-2389-4d9f-939d-347ad7c2a7c3" alt=""><figcaption></figcaption></figure>

Go to [developer.servicenow.com](https://developer.servicenow.com)

The URL in your browser’s address bar is your instance URL. It usually looks like: `https://<instance>.service-now.com`

#### 3. Username

In that same card, copy the username that is underneath the URL.

#### 4. Password

This is the password for the ServiceNow user account above. This is used together with the username for authentication.

Copy the password under "Current password."

#### 5. Client ID

In the video below, you will find how to generate a Client ID and Client Secret by creating an OAuth API endpoint. To follow the steps in the video guide, go to the homepage of your ServiceNow instance: `https://<instance>.service-now.com`

<figure><img src="https://3697023207-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFSlso1Kjob5CLDrh0dVn%2Fuploads%2F1pdSYcDfCn2lZYk6AvLy%2Fservicenow.gif?alt=media&#x26;token=8016b0cc-436c-42b2-8b85-dabe380e930a" alt=""><figcaption></figcaption></figure>

#### 6. Client Secret

To get the client secret, click on the resource you've created and then click on the copy button to the right, next to Client Secret.
