--- title: Import Set API description: The Import Set API provides endpoints that allow you to interact with import set tables.Retrieves the specified import staging record and resulting transformation result.Inserts incoming data into a specified staging table and triggers transformation based on predefined transform maps in the import set table.Inserts multiple records into a specified staging table and triggers transformation based on predefined transform maps or Robust Transform Engine \(RTE\) configurations in a single request. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/c\_ImportSetAPI.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 11 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Import Set API The Import Set API provides endpoints that allow you to interact with import set tables. This API transforms incoming data based on associated transform maps. The import set API supports synchronous transforms. The Import Set API mirrors the existing SOAP interface. ## Security Access to tables via the REST API is restricted by BasicAuth. To allow access to tables without any authentication or authorization, add the table name to sys\_public.list. ACLs defined on tables are still enforced, and it is the administrator's responsibility to deactivate ACLs. **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## Import Set - GET /now/import/\{stagingTableName\}/\{sys\_id\} Retrieves the specified import staging record and resulting transformation result. ### URL format Versioned URL: `/api/now/{api_version}/import/{stagingTableName}/{sys_id}` Default URL: `/api/now/import/{stagingTableName}/{sys_id}` **Note:** Available versions are specified in the [REST API Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/use-REST-API-Explorer.md). For scripted REST APIs there is additional version information on the [Scripted REST Service form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md). ### Supported request parameters
Name Description
api\_version Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String
stagingTableName Name of the table from which to obtain the import data.Data type: String
sys\_id Sys\_id of the record that contains the data.Data type: String
|Name|Description| |----|-----------| |None| | |Name|Description| |----|-----------| |None| | ### Headers The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see [Supported REST API headers](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_RESTAPI.md).
Header Description
Accept Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json**
|Header|Description| |------|-----------| |None| | ### Status codes The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see [REST API HTTP response codes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_RESTAPI.md). |Status code|Description| |-----------|-----------| |200|Successful. The request was successfully processed.| |401|Unauthorized. The user credentials are incorrect or have not been passed.| |404|Indicates the specified resource was not available. As import set tables are deleted frequently based on a schedule, GET requests may return 404 Not Found responses if the transformation result no longer exists.| |500|Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error.| ### Response body parameters \(JSON or XML\)
Name Description
import\_set Name of the import set.Data type: String
result List of objects that contain information on the data sets that were imported.Data type: Array ``` "result": [ { "display_name": "String", "display_value": "String", "record_link": "String", "status": "String", "sys_id": "String", "table": "String", "transform_map": "String" } ] ```
result.display\_name Display name of the specific column in the table for which the display value is true. For example, `number`.Data type: String
result.display\_value Display value of the **display\_name** column. For example, `CHG0000123`.Data type: String
result.record\_link Table API GET request for the imported record.Data type: String
result.status Status of the import.Data type: String
result.sys\_id Sys\_id of the import record.Data type: String
result.table Name of the table in which the data was imported.Data type: String
result.transform\_map Name of the transform map.Data type: String
staging\_table Name of the import staging table.Data type: String
### Sample cURL request ``` curl "https://instance.servicenow.com/api/now/import/imp_user/e2928be64f411200adf9f8e18110c777" \ --request GET \ --header "Accept:application/json" \ --user "username":"password" ``` ``` { "import_set": "ISET0010001", "staging_table": "imp_user", "result": [ { "transform_map": "User", "table": "sys_user", "display_name": "name", "display_value": "John Public", "record_link": "https://instance.service-now.com/api/now/table/sys_user/ea928be64f411200adf9f8e18110c777", "status": "inserted", "sys_id": "ea928be64f411200adf9f8e18110c777" } ] } ``` ## Import Set - POST /now/import/\{stagingTableName\} Inserts incoming data into a specified staging table and triggers transformation based on predefined transform maps in the import set table. Transformation occurs synchronously. For each transform map that you define, the responses include transformation results such as information on the target records. **Note:** The status\_message and error\_message fields on transformation scripts are processed and returned in response, along with any custom response fields. ### URL format Versioned URL: `/api/now/{api_version}/import/{stagingTableName}` Default URL: `/api/now/import/{stagingTableName}` **Note:** Available versions are specified in the [REST API Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/use-REST-API-Explorer.md). For scripted REST APIs there is additional version information on the [Scripted REST Service form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md). ### Supported request parameters **Note:** The Import Set POST method accepts only name-value pairs of String data types in request body parameters. If any other data type is provided, the resulting value stored in the import set table might not conform to the intended format. For example, the ":" notion of the nested JSON object is changed to "=".
Name Description
api\_version Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String
stagingTableName Name of the table from which to import the data.Data type: String
|Name|Description| |----|-----------| |None| |
Name Description
Call specific Name-value pairs to insert in the import fields.Data type: String
### Headers The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see [Supported REST API headers](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_RESTAPI.md).
Header Description
Accept Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json**
Content-Type Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json**
|Header|Description| |------|-----------| |None| | ### Status codes The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see [REST API HTTP response codes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_RESTAPI.md). |Status code|Description| |-----------|-----------| |200|Successful. The request was successfully processed.| |201|Successful. The request was successfully created.| |401|Unauthorized. The user credentials are incorrect or have not been passed.| |500|Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error.| ### Response body parameters \(JSON or XML\)
Name Description
import\_set Name of the import set.Data type: String
result List of objects that contain information on the data sets that were imported.Data type: Array ``` "result": [ { "display_name": "String", "display_value": "String", "record_link": "String", "status": "String", "sys_id": "String", "table": "String", "transform_map": "String" } ] ```
result.display\_name Display name of the specific column in the table for which the display value is true. For example, `number`.Data type: String
result.display\_value Display value of the **display\_name** column. For example, `CHG0000123`.Data type: String
result.record\_link Table API GET request for the imported record.Data type: String
result.status Status of the import.Data type: String
result.sys\_id Sys\_id of the import record.Data type: String
result.table Name of the table in which the data was imported.Data type: String
result.transform\_map Name of the transform map.Data type: String
staging\_table Name of the import staging table.Data type: String
### Sample cURL request ``` curl "https://instance.servicenow.com/api/now/import/imp_user" \ --request POST \ --header "Accept:application/json" \ --header "Content-Type:application/json" \ --data "{'first_name':'John','last_name':'Public','user_id':'john.public','email':'john.public@company.com'}" \ --user "username":"password" ``` ``` { "import_set": "ISET0010001", "staging_table": "imp_user", "result": [ { "transform_map": "User", "table": "sys_user", "display_name": "name", "display_value": "John Public", "record_link": "https://instance.servicenow.com/api/now/table/sys_user/ea928be64f411200adf9f8e18110c777", "status": "inserted", "sys_id": "ea928be64f411200adf9f8e18110c777" } ] } ``` ## Import Set - POST /now/import/\{stagingTableName\}/insertMultiple Inserts multiple records into a specified staging table and triggers transformation based on predefined transform maps or Robust Transform Engine \(RTE\) configurations in a single request. Transformation is asynchronous by default. To set synchronous transformation, create a new record in the Rest Insert Multiples \[sys\_rest\_insert\_multiple\] table, select the source table, and set the transformation to synchronous. This endpoint can send a request body in two possible formats. - **Data source file format** If you generate a staging table from a JSON data source, match the JSON format of the source file. - **Staging table column format** Default. Matches the staging table column request body format in key value pairs. ### URL format Versioned URL: `/api/now/{api_version}/import/{stagingTableName}/insertMultiple` Default URL: `/api/now/import/{stagingTableName}/insertMultiple` **Note:** Available versions are specified in the [REST API Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/use-REST-API-Explorer.md). For scripted REST APIs there is additional version information on the [Scripted REST Service form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md). ### Supported request parameters **Note:** The Import Set POST method accepts only name-value pairs of String data types in request body parameters. If any other data type is provided, the resulting value stored in the import set table might not conform to the intended format. For example, the ":" notion of the nested JSON object is changed to "=".
Name Description
api\_version Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String
stagingTableName Name of the import set table from which to import the data. Refer to [Import sets key concepts](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/c_ImportSetsKeyConcepts.md).Data type: String
Name Description
multi\_import\_set\_id Sys\_id of an entry in the Multi Import Sets \[sys\_multi\_import\_set\] table. If specified, adds the current import to this multiple import set instead of adding to a new multiple import set.Data type: String Table:
run\_after Sys\_id of the entry to run. Enables running the current import set after the specified import set is complete. You can use this parameter to enforce the sequential order of imports.This parameter is only valid in asynchronous transformations. Data type: String Table: Import Sets \[sys\_import\_set\]
Format Description
Data source file This request body format matches the JSON file format used to create the data source. Provide the request body in the same format as the JSON in the data source. JSON input varies depending on the properties in your data source. Refer to JSON information in [File type data source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/r_FileTypeDataSource.md).- This option is only available if the staging table was created using a JSON data source. Refer to [Create a File type data source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/create-file-type-data-source.md). - You must define the path of the data source in the Data Source \[sys\_data\_source\] table in the **Path for each row** field. - To change the default behavior for the REST Insert Multiple user, create an entry in the REST Insert Multiples \[sys\_rest\_insert\_multiple\] table. - Enable the **Use data source format** in the REST insert multiple entry. Data type: Object
Staging table column \(default\) This request body format matches staging table columns. Use the **records** array of key-value pairs matching the staging table column to insert in the import fields. Each JSON key is maps the table column to a JSON value representing the value to be inserted. JSON input varies depending on what fields are in your staging table.The column mapping default key value is to the column table. ``` { "records":[ { "":"", "":"" }, { "":"", "":"" } ] } ``` You can modify mapping settings by adding an entry in the Rest Insert Multiples \[sys\_rest\_insert\_multiple\] table and changing the **Column mapping** from **Label** to **Column name**. ``` { "records":[ { "":"", "":"" }, { "":"", "":"" } ] } ``` The [Data dictionary tables](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/c_DataDictionaryTables.md) provides details on table fields in the system. Data type: Array
### Headers The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see [Supported REST API headers](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_RESTAPI.md). |Header|Description| |------|-----------| |Accept|Data format of the response body. Only supports **application/json**.| |Content-Type|Data format of the request body. Only supports **application/json**.| |Header|Description| |------|-----------| |None| | ### Status codes The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see [REST API HTTP response codes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_RESTAPI.md). |Status code|Description| |-----------|-----------| |200|Successful. The request was successfully processed.| |201|Successful. The request was successfully created.| |401|Unauthorized. The user credentials are incorrect or have not been passed.| |500|Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error.| ### Response body \(JSON\)
Name Description
import\_set\_id Sys\_id of the added record. For asynchronous requests, you can use this value to run another import set after this import set process is complete.Data type: String Table: Import Sets \[sys\_import\_set\]
multi\_import\_set\_id Sys\_id of the added record. Use this value to group multiple import sets into one set.Data type: String Table: Multi Import Sets \[sys\_multi\_import\_set\]
### Sample cURL request The following example shows how to run a transform on an import table called u\_employee\_import\_set\_table using the staging table column format. ``` curl "https://instance.servicenow.com/api/now/import/u_employee_import_set_table/insertMultiple" \ --request POST \ --header "Accept:application/json" \ --header "Content-Type:application/json" \ --data "{ \"records\": [ { \"Address\": \"Hollywood\", \"Name\": \"Tom\", \"ID\": \"123\" }, { \"Address\": \"Vine\", \"Name\": \"Irene\", \"ID\": \"456\" } ] }" \ --user 'username':'password' ``` Results include sys\_ids for new records in the Import Sets \[sys\_import\_set\] and Multi Import Sets \[sys\_multi\_import\_set\] tables. ``` { "import_set_id": "", "multi_import_set_id": "" } ```