REST integrations
Quick answer
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.
Key takeaways
- 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.
Want to learn this properly?
Our live, instructor-led ServiceNow Training covers this hands-on, with real projects and a certification path.
Check your understanding
A GET to /api/now/table/incident returns:
- A. An HTML page
- B. Incident records as JSON
- C. A PDF
Show answer
B. Incident records as JSON
The Table API exposes every table as REST returning JSON.
A reusable definition of an outbound call is a:
- A. REST Message
- B. Business rule
- C. Report
Show answer
A. REST Message
REST Message stores an outbound REST definition.
To build a custom inbound endpoint you use a:
- A. Scripted REST API
- B. UI policy
- C. Dashboard
Show answer
A. Scripted REST API
Scripted REST APIs create custom inbound resources.