REST integrations
Connect ServiceNow to the rest of your stack over REST.
ServiceNow integrates with the outside world mostly over REST, and it works both directions: other systems call ServiceNow's APIs, and ServiceNow calls theirs. Knowing the inbound Table API, outbound REST Messages, and the auth model covers the large majority of integration work.
- Inbound: the Table API
- Useful query parameters
- Other inbound APIs
- Outbound: REST Messages
- Authentication & accounts
ServiceNow integrates with the outside world mostly over REST, and it works both directions: other systems call ServiceNow's APIs, and ServiceNow calls theirs. Knowing the inbound Table API, outbound REST Messages, and the auth model covers the large majority of integration work.
Inbound: the Table API
The built-in Table API exposes every table as REST with no code, full CRUD over HTTP:
Note sysparm_query, it's the same encoded query syntax as a list breadcrumb.
Useful query parameters
Other inbound APIs
Beyond the Table API: the Import Set API (post into a staging table + transform), the Aggregate API (counts/stats), Attachment API, and Scripted REST APIs for custom endpoints when the generic Table API isn't the right contract.
Outbound: REST Messages
To call an external API, define a REST Message (endpoint, method, headers, auth) and invoke it from a flow or script. This is how ServiceNow posts to Slack, queries a CMDB source, or triggers a pipeline.
Authentication & accounts
Prefer IntegrationHub for real integrations
Common mistakes
- Not paginating, so large pulls time out, use
sysparm_limit+ offset. - Requesting display values when you need sys_ids (or vice versa).
- Integration accounts with
admininstead of least privilege. - Hand-building a REST Message where a spoke already exists.