---
title: "Create ServiceNow credentials"
method: POST
path: "/enrichment/integrations/servicenow/credentials"
tags: ["Enrichment Integrations"]
---

# Create ServiceNow credentials

`POST /enrichment/integrations/servicenow/credentials`

Creates the ServiceNow API credentials used to authenticate synchronization and test requests. Only one credential set is allowed per account, and it is shared across the account's ServiceNow integration. The password is never returned in responses.

<!-- theme: warning -->

> ### Early Access
> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.

Scoped OAuth requires: `contextual_data.write`

## Headers

- `Accept` string, required
- `Content-Type` 'application/json', required

## Request body

- object
  - `credentials` ServiceNowCredentialsInput, required
    - `instance_endpoint` string, required — The ServiceNow instance URL (for example, `https://your-instance.service-now.com`).
    - `user` string, required — The ServiceNow username used to authenticate API requests. The user must have read access to the configured CMDB tables.
    - `password` string, required — The ServiceNow password. Only accepted in requests and never returned in responses.

## Response `201`

The ServiceNow credentials were created successfully. The password is never returned.

- object
  - `credentials` ServiceNowCredentials
    - `id` string — Base32-encoded UUID v7 (26 uppercase alphanumeric characters) identifying the credentials.
    - `instance_endpoint` string — The ServiceNow instance URL (for example, `https://your-instance.service-now.com`).
    - `user` string — The ServiceNow username used to authenticate API requests. The user must have read access to the configured CMDB tables.
    - `password` string — The ServiceNow password. Only accepted in requests and never returned in responses.
    - `created_at` string, date-time — The date/time the credentials were created.
    - `updated_at` string, date-time — The date/time the credentials were last updated.
    - `deleted_at` string, date-time, nullable — The date/time the credentials were deleted, or `null` if they have not been deleted.

## Other responses

- `400` — Caller provided invalid arguments. Please review the response for error details. Retrying with the same arguments will *not* work.
- `401` — Caller did not supply credentials or did not provide the correct credentials. If you are using an API key, it may be invalid or your Authorization header may be malformed.
- `403` — Caller is not authorized to view the requested resource. While your authentication is valid, the authenticated user or token does not have permission to perform this action.
- `429` — Too many requests have been made, the rate limit has been reached.
- `500` — Internal Server Error the PagerDuty server experienced an error.

---

[API](https://skmtc.net/pagerduty/apis/rest-api.md) · [All operations](https://skmtc.net/pagerduty/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pagerduty/rest-api/revisions/b679a8f3f02c/schema)
