Skip to main content
Version: 4.12.0

ServiceNow SDK API Reference

The ServiceNow SDK lets you develop applications in source code using ServiceNow Fluent — a domain-specific language for creating application metadata as code.

What is ServiceNow Fluent?

ServiceNow Fluent provides a set of typed API functions that map directly to platform records. Instead of configuring records through the UI, you define them in TypeScript and deploy them with the SDK.

See The Fluent Language for the full picture of what Fluent is, why it's designed this way, and its core principles.

Getting Started

Follow the Getting Started guide to scaffold a project, author metadata with Fluent, and build and deploy to an instance.

Available APIs

Browse the API Reference section in the sidebar for complete documentation on each available function.

Using AI Coding Assistants

Starting with SDK version 4.6.0, @servicenow/sdk ships a dedicated AI agent skill. If you're using an AI coding agent (Claude, Cursor, GitHub Copilot, Grok, or similar) for Fluent development, install this skill — see the AI Skills documentation for setup. It's the recommended way to use AI tooling with the SDK, and does more than hand the agent static docs:

  • Automatic orientation. On every project, the agent reads the full quickstart and Fluent-language documentation before writing any code automatically — no need to prompt it to "read the docs" first or to train it.
  • Versioned to your project. It reads documentation from the @servicenow/sdk version actually installed in your project, not a generic reference, so guidance matches the APIs and behavior your project actually has.
  • Live instance queries. Beyond static docs, the agent can query your connected instance directly — looking up a sys_id, inspecting table columns, checking whether a record already exists, fetching choice values, or reading role/scope info — instead of guessing.
  • Safety guidance built in. The skill teaches rules that aren't obvious from the code alone, like never deleting a Table()/BusinessRule()/Record() definition without confirming with you first — a deletion may need to propagate through keys.ts on the next install, which the code alone can't reveal.

LLMs.txt

If you're not using the skill and want to reference this site directly instead, an llms.txt index is available

FileURLDescription
llms.txthttps://servicenow.github.io/sdk/llms.txtDocumentation index with links to guides and API pages

Available Versions

A machine-readable index of all published versions is available at:

https://servicenow.github.io/sdk/versions.json

This is useful for agents or tooling that need to target a specific SDK version. Each entry in the versions array includes:

  • version — the SDK version string
  • url — the docs base URL for that version
  • llms — the documentation index for that version