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

# ServiceNow

> Integrate your application with the ServiceNow API using OAuth 2.0

## 🚀 Quickstart

Connect to ServiceNow with Nango and see data flow in 2 minutes.

<Steps>
  <Step id="create-integration" title="Create the integration">
    In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *ServiceNow*.
  </Step>

  <Step id="authorize-servicenow" title="Authorize ServiceNow">
    Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, enter your instance domain, then log in to ServiceNow. Later, you'll let your users do the same directly from your app.
  </Step>

  <Step id="call-servicenow-api" title="Call the ServiceNow API">
    Let's make your first request to the ServiceNow Table API (fetch a list of incidents). Replace the placeholders below with your [secret key](https://app.nango.dev/dev/environment-settings), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

    <Tabs>
      <Tab title="cURL">
        ```bash theme={null}
        curl "https://api.nango.dev/proxy/api/now/table/incident?sysparm_limit=5" \
          -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
          -H "Provider-Config-Key: <INTEGRATION-ID>" \
          -H "Connection-Id: <CONNECTION-ID>"
        ```
      </Tab>

      <Tab title="Node">
        Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

        ```typescript theme={null}
        import { Nango } from '@nangohq/node';

        const nango = new Nango({ secretKey: '<NANGO-SECRET-KEY>' });

        const res = await nango.get({
            endpoint: '/api/now/table/incident',
            providerConfigKey: '<INTEGRATION-ID>',
            connectionId: '<CONNECTION-ID>',
            params: { sysparm_limit: '5' }
        });

        console.log(res.data);
        ```
      </Tab>
    </Tabs>

    Or fetch credentials with the [Node SDK](/docs/reference/sdks/node#get-a-connection-with-credentials) or [API](/docs/reference/api/connection/get).

    ✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.
  </Step>

  <Step id="implement-nango" title="Implement Nango in your app">
    Follow our [Auth implementation guide](/docs/guides/auth/auth-guide) to integrate Nango in your app.

    To obtain your own production credentials, follow the setup guide linked below.
  </Step>
</Steps>

## 📚 ServiceNow Integration Guides

Nango-maintained guides for common use cases.

* [How to register your own ServiceNow OAuth app](/docs/api-integrations/servicenow/how-to-register-your-own-servicenow-oauth-app)\
  Register an OAuth app with ServiceNow and obtain credentials to connect it to Nango

* [How do I link my account?](/docs/api-integrations/servicenow/connect)\
  Find your instance domain and connect it to Nango

Official docs: [ServiceNow REST API Documentation](https://developer.servicenow.com/dev.do#!/reference/api/vancouver/rest/c_TableAPI)

## API gotchas

* A [ServiceNow Developer Instance](https://developer.servicenow.com/dev.do) is free for testing; production instances require a paid subscription.
* The OAuth application must be registered as **Create an OAuth API endpoint for external clients** in the Application Registry, with the redirect URL set to `https://api.nango.dev/oauth/callback`.
* Enter your instance's full domain (e.g. `your-instance.service-now.com`) in the **ServiceNow Domain** field — Nango uses it to build the authorization and token endpoints automatically.

<Note>Contribute API gotchas by [editing this page](https://github.com/nangohq/nango/tree/master/docs/api-integrations/servicenow.mdx)</Note>

## 🧩 Pre-built syncs & actions for ServiceNow

Enable them in your dashboard. Extend and customize to fit your needs.

### Others

| Function name                | Description                                                        | Type                                           | Source code                                                                                                                           |
| ---------------------------- | ------------------------------------------------------------------ | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `create-change-request`      | Create a change request.                                           | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/create-change-request.ts)      |
| `create-change-task`         | Create a change task under a change request.                       | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/create-change-task.ts)         |
| `create-group`               | Create a group                                                     | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/create-group.ts)               |
| `create-incident`            | Create an incident                                                 | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/create-incident.ts)            |
| `create-problem`             | Create a problem                                                   | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/create-problem.ts)             |
| `create-user`                | Create a user.                                                     | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/create-user.ts)                |
| `delete-change-request`      | Delete a change request.                                           | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/delete-change-request.ts)      |
| `delete-group`               | Delete a group.                                                    | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/delete-group.ts)               |
| `delete-incident`            | Delete an incident                                                 | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/delete-incident.ts)            |
| `delete-problem`             | Delete a problem                                                   | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/delete-problem.ts)             |
| `get-catalog-item`           | Retrieve a service catalog item.                                   | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-catalog-item.ts)           |
| `get-catalog-request`        | Retrieve a catalog request (sc\_request).                          | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-catalog-request.ts)        |
| `get-change-request`         | Retrieve a change request.                                         | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-change-request.ts)         |
| `get-change-task`            | Retrieve a change task.                                            | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-change-task.ts)            |
| `get-group`                  | Retrieve a group.                                                  | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-group.ts)                  |
| `get-incident`               | Retrieve an incident.                                              | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-incident.ts)               |
| `get-knowledge-article`      | Retrieve a knowledge base article.                                 | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-knowledge-article.ts)      |
| `get-problem`                | Retrieve a problem.                                                | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-problem.ts)                |
| `get-table-record`           | Retrieve an allowed table record.                                  | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-table-record.ts)           |
| `get-user`                   | Retrieve a user.                                                   | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/get-user.ts)                   |
| `list-approvals`             | List approval records (sysapproval\_approver).                     | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-approvals.ts)             |
| `list-attachments`           | List attachment metadata for a table record                        | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-attachments.ts)           |
| `list-catalog-items`         | List service catalog items.                                        | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-catalog-items.ts)         |
| `list-catalog-request-items` | List request items (sc\_req\_item) for a catalog request.          | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-catalog-request-items.ts) |
| `list-change-requests`       | List change requests.                                              | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-change-requests.ts)       |
| `list-change-tasks`          | List change tasks.                                                 | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-change-tasks.ts)          |
| `list-groups`                | List sys\_user\_group records.                                     | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-groups.ts)                |
| `list-incidents`             | List incidents.                                                    | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-incidents.ts)             |
| `list-knowledge-articles`    | List knowledge base articles.                                      | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-knowledge-articles.ts)    |
| `list-problems`              | List problems.                                                     | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-problems.ts)              |
| `list-table-records`         | List records from an allowed table.                                | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-table-records.ts)         |
| `list-users`                 | List sys\_user records.                                            | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/list-users.ts)                 |
| `order-catalog-item`         | Order a service catalog item, creating a request and request item. | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/order-catalog-item.ts)         |
| `update-approval`            | Approve or reject a pending approval.                              | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/update-approval.ts)            |
| `update-change-request`      | Update change request fields.                                      | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/update-change-request.ts)      |
| `update-change-task`         | Update change task fields (e.g. state, work notes).                | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/update-change-task.ts)         |
| `update-group`               | Update group fields.                                               | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/update-group.ts)               |
| `update-incident`            | Update an incident.                                                | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/update-incident.ts)            |
| `update-problem`             | Update problem fields                                              | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/update-problem.ts)             |
| `update-user`                | Update user fields.                                                | [Action](/docs/guides/functions/action-functions)   | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/actions/update-user.ts)                |
| `approvals`                  | Sync approval records (sysapproval\_approver)                      | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/approvals.ts)                    |
| `catalog-requests`           | Sync service catalog requests (sc\_request)                        | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/catalog-requests.ts)             |
| `change-requests`            | Sync change requests.                                              | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/change-requests.ts)              |
| `change-tasks`               | Sync change tasks                                                  | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/change-tasks.ts)                 |
| `cmdb-ci`                    | Sync CMDB configuration items from ServiceNow                      | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/cmdb-ci.ts)                      |
| `groups`                     | Sync groups.                                                       | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/groups.ts)                       |
| `incidents`                  | Sync incidents                                                     | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/incidents.ts)                    |
| `knowledge-articles`         | Sync knowledge base articles (kb\_knowledge).                      | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/knowledge-articles.ts)           |
| `problems`                   | Sync problems.                                                     | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/problems.ts)                     |
| `users`                      | Sync users.                                                        | [Sync](/docs/guides/functions/syncs/sync-functions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/servicenow/syncs/users.ts)                        |

***
