Inbound REST in ServiceNow lets another system call an instance endpoint to read data or request an operation. Set up the API resource, choose its method and processing logic, then connect authentication, access controls, and rate limits.
The caller’s contract sets the endpoint’s scope
Start with the request the external system needs to make. Write down the business operation, the information it must send, and the response it needs. For example, a monitoring tool might submit an event reference and receive an acknowledgment. Keep that contract narrow enough to test without involving unrelated operations.
Decide whether the caller needs an existing API or a custom resource. If the integration centers on a table, review the ServiceNow Table API endpoint format before designing a separate interface. Record the selected API, resource, method, and expected caller identity together so that the team tests a single agreed contract.
For a custom operation, a Scripted REST API provides resources with their own methods and processing scripts. Treat the resource configuration and its security settings as one setup task. An endpoint that processes a valid payload still needs tests showing that an unauthorized caller cannot perform the same operation.
Creating the API and resource takes the web_service_admin role
Creating the API and resource requires the web_service_admin role. In All > System Web Services > Scripted REST APIs, select New. Enter the service Name and inspect the generated API ID. You can modify the API ID before submitting. Choose the Default ACLs intended for the API resources, then select Submit.
Open the API record and use New in the Resources related list. The resource name becomes part of the request path, so settle on it before any caller is given the URI. Select the request method that implements the operation. In Script, define how the operation parses the request and produces its response. Save the resource with Submit after reviewing its settings.
The Short description on a resource’s Documentation tab is what a developer sees about that endpoint in REST API Explorer, so write it as the usage note for that resource. Use that field to explain the operation and the caller’s required inputs. Headers and query parameters can be associated after the resource exists. Plan those associations around the contract rather than adding parameters without a defined purpose.
Keep the first test small: one representative request, one expected response, and one identifiable business outcome. If more scripting is needed, the guide to building secure Scripted REST APIs covers the neighboring implementation work.
An API key or HMAC token is only as narrow as its scope and policy
API key and HMAC authentication support requires the API Key and HMAC Authentication plugin, com.glide.tokenbased_auth. Its dependencies include REST API Auth Scope Plugin, REST API Access Policy Plugin, and Authentication scope. Check availability and configuration on your instance and release before choosing this approach for the calling system.
An API key or HMAC token can be associated with a user account. Authentication scope can restrict the APIs that the key invokes, while an authentication profile can connect the token configuration to API access policies. Review this chain explicitly: credential, resolved account, permitted API scope, authentication profile, and applicable access policy.
The supported token placement includes a query parameter or a header. In most integrations a header keeps credentials apart from query values, so a header is usually the better choice. For any call that carries sensitive information, send it as a POST request. Keep real credential values out of request examples, handover notes, and configuration screenshots.
A concrete application example is the SupplyOn async callback. Its setup requires admin. The caller sends its key in x-sn-apikey; an inbound authentication profile that uses an API key resolves that key to its user. A REST API Access Policy binds the profile to the callback endpoint.
That callback also requires sn_supplyon_po.integration_user on the dedicated service account. Its authentication profile, policy, security scheme, ACL, and role are supplied with the application, while the issued key is runtime data. Use this as an example of connected controls; use the role required by your own endpoint when designing a different integration.
Endpoint ACLs decide who can call each resource
Configuring a resource to require an ACL needs web_service_admin or admin. Open the API, select the resource in Resources, and inspect the Security tab. Select Requires authentication before enabling Requires ACL authorization. Choose ACL records whose Type is REST_Endpoint and whose required roles match the intended callers.
Unless a resource names its own ACLs, it takes the security settings of its parent API. Naming ACLs on a resource replaces the parent’s selection for that endpoint only. Review overrides deliberately, especially when one resource handles a more sensitive operation than its neighbors.
These endpoint ACL checks apply to authenticated users. Unchecking Requires authentication on one resource removes the credential requirement for that endpoint, even when the parent API demands an ACL. Keep that setting enabled for a protected integration, then check the account’s access to the instance data the operation needs. Scripted REST requests must also meet applicable table ACL requirements.
Test with the dedicated caller account and with an account that lacks the endpoint role. Record the expected outcome for each case before running it. Using an administrative account for the successful request would leave the integration account’s actual permissions untested.
For help planning this work, see ServiceNow implementation.
A per-hour rate rule limits how often one caller reaches the endpoint
Creating an inbound REST API rate limit requires rate_limit_admin. Navigate to All > System Web Services > REST > Rate Limit Rules and select New. Give the rule a unique Name, then select REST API, Version, and Resource. The available versions and resources depend on the preceding selections.
The Table field shows only when the REST API is Table API, and Import set table shows only when it is Import Set API. Use the appropriate target field rather than assuming a rule for one table covers a different resource. The REST API resource value is derived from the selections in the form.
Set Request limit per hour and choose Apply to. Single user targets a specific User; Users with role targets the selected Role; All users applies across users. Review Active before selecting Submit. A new rule starts enforcing as soon as it is saved, so pick a test target that cannot throttle callers you did not mean to affect.
After submission, inspect Rate Limit Counts and Rate Limit Violations on the rule. Each node keeps its own per-user count and writes it to the database every 30 seconds, so a new rule can take up to half a minute to start enforcing. Include that interval in your test plan instead of treating an immediate request as conclusive.
A passing request alone does not prove the integration works
Run a successful request with representative data, then inspect both the response and the resulting operation. A response alone does not show whether the intended business change occurred. Compare the returned information with the contract and check that the operation touched the intended data.
Next, test missing credentials, an identity without the required access, and a request that breaks your defined input contract. Record results without storing secrets. If a test fails, identify whether the problem concerns resource selection, authentication, authorization, processing, or traffic control before changing settings.
Use the REST and SOAP integration troubleshooting guide when those checks point to different layers. Change one relevant setting at a time so that a successful retest has an explainable cause.
Handover notes should name the endpoint owner, account owner, resource, expected inputs, response meaning, and rate rule. Include the successful and rejected test cases. Give the team a repeatable way to validate a later change without relying on the person who originally configured the resource.
Questions about specialized authentication and maintenance
Does Virtual Agent message authentication use the same setup?
Virtual Agent has a separate Message Authentication configuration requiring admin. It connects a Static or Hash token to Provider Authentication and then to the channel identity through Message auth. Treat that configuration as specific to the Virtual Agent integration.
Which header does Virtual Agent use for a Hash token?
Hash-token calls carry the signature in the x-b2b-signature header, computed as HmacSHA1 over the request payload using the token configured in the instance. Check the caller’s payload serialization when investigating a signature mismatch, rather than replacing the token without first comparing the signed content.
What happens when the hourly request limit changes?
Editing Request limit per hour clears the running request count and removes the violation records for the current hour. Capture the observations needed for your investigation before editing that value, so the change does not remove the evidence you were examining.
Are the outbound fields in Virtual Agent Message Auths available?
Outbound message creation and Outbound service token are not yet supported for Virtual Agent API setups, so do not build outbound behavior on either field. During this inbound setup, select the previously created Static or Hash token in Outbound message creation as required by the configuration procedure.