RESTAPIRequest

The RESTAPIRequest API allows you to access scripted REST API request details in scripts.

Last modified 2025-06-20

Jace Benson

Table of content
  1. headers
  2. pathParams
  3. queryParams
  4. getRequestedQueryCategory
  5. getSupportedResponseContentTypes
  6. body
  7. queryString
  8. uri
  9. url
  10. getHeader

Developer Documentation

headers

All headers from the request

pathParams

The variable path parameters passed in the request URI as an object

queryParams

The query parameters from the request as an object

getRequestedQueryCategory

Get the query category (i.e. read replica category) from query parameter sysparm_query_category

getSupportedResponseContentTypes

Obtain a set of media types that are common between what the client request accepts and what this service is able to produce

body

The body of the request

queryString

The entire query string from the request URI

uri

The request URI, excluding domain information

url

The entire request URL, including domain

getHeader

Get the value of a specific header from the request