Getting started with REST - read the inserted incident

Use the Location header from the POST response to run a GET request.

Before you begin

Role required: web_service_admin, rest_api_explorer, or admin

About this task

Use the REST API Explorer to send the following request:

GET https://instance.service-now.com/api/now/v1/table/incident/(sys_id)

Procedure

  1. In the top-left of the REST API Explorer, click Retrieve a record (GET).
  2. In the Path Parameters section, select the Incident table.
  3. In the sys_id field, enter the sys_id of the record you created.

    The record sys_id appears as a 32-character string at the end of the POST response Location header.

  4. Click Send.

    The response body contains a text representation of the record. You can control the format of the response, such as JSON or XML, using the Response Format field.

    Get record response