sndev.io / docs

REST API

Scripted REST APIs with HTTP method handlers.

The rest-api skill creates Scripted REST APIs (sys_ws_definition) — custom HTTP endpoints exposed by your ServiceNow instance. Define the API, add resources (path segments), and configure GET/POST/PUT/DELETE method handlers.
OperationDescription
add_query_parameterAdd a query parameter definition to a resource
add_resourceAdd a resource path with an HTTP method handler script
create_apiCreate a scripted REST API definition
Run sn ops rest-api to see the full input schema for each operation.
You

Create a scripted REST API endpoint that returns incident statistics by category.