---
title: "Generate ServiceNow Credentials"
slug: "generate-servicenow-credentials"
updated: 2025-04-02T06:19:28Z
published: 2025-04-02T06:19:28Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.whatfix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate ServiceNow Credentials

The ServiceNow application can be integrated with Whatfix to fetch and display content from your ServiceNow Repository as contextual links in the Self Help widget. You can either fetch all the content or only the content in particular folders.

You need the following prerequisites from ServiceNow to integrate content with Whatfix:

- Client ID
- Client Secret
- Authorization Code

 
     Generate Client ID and Client Secret 
    
     

1. Log-in to the [ServiceNow Developer](https://developer.servicenow.com/dev.do) console.
2. Open your **Instance**, and follow the steps shown in the slideshow to generate the necessary credentials.

[Embedded content](https://cdn.whatfix.com/prod/45dba1cc-fb59-4dee-ab37-a68ac38ca9ad/deck.html?closeable=false&amp;stage=production&amp;state=null&amp;true=undefined&amp;preview_mode_enabled=false&amp;entId=45dba1cc-fb59-4dee-ab37-a68ac38ca9ad&amp;content_type=flow&amp;data-wfx-namespace=main_%24#!/b404e4a7-fe1d-4e14-a290-a16aab2b85f9/)

 
     Generate the Authorization code 
    
     

Use the following steps to generate the Authorization code:

1. Copy and paste the following URL in your preferred browser.

```
https://{your-instance-name}/oauth_auth.do?response_type=code&redirect_uri={redirect-url}&client_id={client-id}&state={unique-id}&grant_type=authorization_code
```

          your title goes here

          

Ensure that you make the following changes in the code:

- Replace {**your-instance-name**} with the **instance name** obtained earlier.
- Replace {**redirect-url**} with the **Redirect URL**.
- Replace {**client_id**} with the **Client ID**.
- Replace {**unique-id**} with any **4-digit numerical value**.

1. Click **Allow**.
2. Once the page loads, copy the URL that appears on your browser.
3. The value of the **access_token** parameter in the URL is the Authorization code.  

https://dev68258.service-now.com/oauth.redirect.do#access_token=<**Authorization_code_generated**>&state=1234&expires_in=1800

          your title goes here

          

- The Authorization code generated is valid only for 1 minute.
- To increase the validity of the code, follow the procedure mentioned in the article, [Manage OAuth tokens](https://docs.servicenow.com/bundle/tokyo-platform-security/page/administer/security/task/t_ManageTokens.html).
