To use the REST API Explorer to test an endpoint, open it from All, select the API and version, choose a method, supply the request parameters, and click Send. Inspect the response body, Status code, and Execution time. Begin with a GET request so you can inspect records before testing changes.
Open the Explorer with the right access
Access to the REST API Explorer requires web_service_admin, rest_api_explorer, or admin. Open All in the top navigation, then follow System Web Services > REST > REST API Explorer. Alternatively, enter REST API Explorer in the Filter search bar and select the module. Click Explore to enter the Explorer. Once it opens, the Explorer lets you browse the available APIs, their versions, and the methods each API offers, and test requests straight from the interface.
The walkthrough in this guide requires rest_api_explorer. Keep that requirement distinct from the access requirement above. Viewing path-based resource ACLs is a separate action requiring admin. A person who can open the Explorer should not assume that they can perform its administrative security inspection steps.
Write down the result that would show the test worked before you build the request. For a first test, that is an existing incident you are authorized to inspect, or a small collection, plus the table and operation you expect. A response from a different table is then easy to spot.
Check the controls and behavior on your instance and release before following the sequence. Use a test environment and records intended for testing when you move beyond retrieval. The Explorer executes requests against the instance; treat a change request as an operation on data, rather than as a preview of a possible integration.
Select the API, version, and method
The Namespace, API Name, and Version drop-down options narrow the available REST APIs. Use them together to identify the endpoint you intend to exercise. Then examine the methods for that API. Selecting a familiar API name without checking its version leaves an important part of the test undefined.
For the incident retrieval example, select Table API and version v1 in the top-left of the Explorer. Choose Retrieve records from a table (GET). This gives you a concrete starting point: one API, one version, one method, and one table. You can then assess the returned records against a clear expectation.
The method determines the operation being tested. In this walkthrough, POST creates an incident, GET reads a record or retrieves existing incidents, PUT or PATCH updates an incident, and DELETE removes it. Choose the operation deliberately before entering values. A retrieval test and an update test answer different questions.
When the resource itself is unclear, review the ServiceNow Table API endpoint format. Resolve the table and record target before experimenting with request values. Otherwise, a well-formed request may still test a different endpoint from the one your integration needs.
Run a first GET request for incident records
This step requires admin, web_service_admin, or rest_api_explorer. It provides a short test that exercises selection, request execution, and response inspection.
- Select Table API and version v1.
- Choose Retrieve records from a table (GET).
- In Path Parameters, select Incident (incident).
- Scroll to the bottom of the page and click Send.
- Inspect the returned incident records together with the Status code and Execution time.
For this example, the Explorer limits the query to 10 records at a time, so the first response contains the first 10 incidents. A Link header supplies the address for the next group of 10. Do not interpret that first group as a complete inventory of incidents or as proof that a particular incident is absent.
Before another run, write down the question that the next request should answer. For example, decide whether you are checking collection retrieval or the identity of a single incident.
If you later change the resource or operation, start a separate entry. This avoids comparing responses that look similar but came from different requests.
A collection response demonstrates collection retrieval. If the actual integration requirement is to inspect one known record, continue with the single-record method. That next test gives you a more precise comparison between the intended target and the returned data.
Test one record and inspect its representation
Reading an incident through the Explorer requires admin, web_service_admin, or rest_api_explorer. Select Retrieve a record (GET). In Path Parameters, select the incident table and enter the target record’s sys_id in the sys_id field. Click Send to execute that request.
If you previously created a test incident through POST, its response Location header contains the record identifier. The sys_id is the 32-character string at the end of that header. Carry that identifier into the GET request so that the follow-up read targets the record created by the earlier operation.
The response body contains a text representation of the record. Use Response Format to control a format such as JSON or XML. Select the representation relevant to the consumer you are testing, then inspect the values it returns. Record the chosen format alongside the request so a later comparison has the same basis.
Evaluate the body, Status code, and Execution time together. The body helps you check the returned record; the status records the request outcome; the execution time reports the duration in milliseconds. Avoid drawing a performance conclusion from one request. For this walkthrough, timing is an observation to preserve with the result.
For example, define the expected result as retrieval of a particular test incident in JSON. Check that the request uses that incident’s identifier and that the response represents the expected record. A populated response alone is a weaker check because it does not establish that you selected the intended target.
Inspect resource protection when access needs review
For a scripted REST API endpoint, an administrator can inspect path-based ACLs from the Explorer. These ACLs define access rules through the resource path, independently of ACL references on the operation record. The View Resource ACLs procedure requires admin.
- Navigate to All > REST API Explorer.
- Locate the API and expand its methods.
- Select the menu icon.
- Select View Resource ACLs.
- Review the path-based ACLs protecting the endpoint.
Restrictive ACLs belonging to the API owner cannot be bypassed by your path-based ACLs. When an access result is unexpected, preserve the resource identity and the observed response before asking for a security review. This gives the administrator a specific endpoint to investigate instead of a general report that the API failed.
Use the guide to building and securing Scripted REST APIs when the next task concerns the custom resource itself. For broader questions about authentication and scope, see API access policies for REST and SOAP. Keep endpoint discovery, request testing, and access review connected in the test record.
For help planning this work, see ServiceNow implementation.
Questions about extending the endpoint test
Can I begin exploration from a table?
Yes. You can explore a table’s REST API directly from that table and use the Explorer to construct and test its requests. This can be a convenient starting point when you already know the table but still need to examine the available request operations. You need the itil, personalize_dictionary, and rest_api_explorer roles. If the table does not allow web service interaction, the Explorer shows a warning instead.
Can I move the API definition into another tool?
The Explorer supports exporting a REST API as an OpenAPI specification for import into another web services tool. Treat that export as a definition handoff. Keep the test observations separately so the person using the receiving tool knows which request and response you actually examined.
How should I organize a create, read, update, and delete trial?
Plan a disposable test record and a checkpoint for each operation before starting. Record the creation result, the subsequent read, the intended update, and the cleanup outcome separately. This makes the trial easier to review than a sequence of requests with no record of the expected state between them.
What should I give a colleague who will reproduce the test?
Provide the selected API and version, operation, table or resource, parameter values, response format, expected outcome, and observed result. Use approved test data. This handoff makes the test reproducible without requiring the colleague to infer your selections from a screenshot of the response body.
What should I change first when comparing two results?
Change one thing at a time and hold the rest steady. Comparing two authorized record identifiers with the same method and response format shows whether a difference comes from the target record or from how the request was built.