{"id":498170,"date":"2025-07-04T10:47:06","date_gmt":"2025-07-04T10:47:06","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=498170"},"modified":"2025-07-04T10:55:10","modified_gmt":"2025-07-04T10:55:10","slug":"servicenow-rest-api-developer-guide","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/","title":{"rendered":"ServiceNow REST API Developer Guide"},"content":{"rendered":"\n<p>This guide explains how to use the ServiceNow REST API with OAuth 2.0 and PHP to access and manage data in the latest Yokohama release.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Is OAuth 2.0 and How Does It Work with the ServiceNow REST API?<\/h2>\n\n\n\n<p>OAuth 2.0 is a method that <span style=\"margin: 0px;padding: 0px\"><strong>enables external applications to securely communicate with your ServiceNow instance<\/strong>&nbsp;<\/span>without requiring your username and password.<\/p>\n\n\n\n<p>Let\u2019s say you have an app (like Postman, a website, or another ServiceNow instance) that needs to read or write data in your ServiceNow system. <\/p>\n\n\n\n<p>With OAuth 2.0, the app requests a special key (called an access token) to prove it&#8217;s authorized to access certain data.<\/p>\n\n\n\n<p><strong>Now, to get this Access Token and then the ServiceNow data, we need to follow the steps below:<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Create an OAuth Application<\/strong> in ServiceNow<\/h3>\n\n\n\n<p>In this step, we set up an OAuth Application for external systems to use.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to your service now instance<\/li>\n\n\n\n<li>In the Navigator search \u2018<strong>System OAuth\u2019. <\/strong><\/li>\n\n\n\n<li>Go to Application Registry and click New to create a new Application.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"562\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-1200x562.webp\" alt=\"servicenow-app-registries\" class=\"wp-image-498187\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-1200x562.webp 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-300x140.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-250x117.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-768x360.webp 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow.webp 1322w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose <strong>Create an OAuth API endpoint for external clients.<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"562\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/oauth-app-servicenow-1200x562.webp\" alt=\"oauth-app-servicenow\" class=\"wp-image-498189\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/oauth-app-servicenow-1200x562.webp 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/oauth-app-servicenow-300x140.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/oauth-app-servicenow-250x117.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/oauth-app-servicenow-768x360.webp 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/oauth-app-servicenow.webp 1322w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fill in the Basic Information fields.<\/li>\n\n\n\n<li>Add a Redirect URL.<\/li>\n\n\n\n<li>Make sure to add an Auth Scope.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"562\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/testoauth-app-registries-servicenow-1200x562.webp\" alt=\"testoauth-app-registries-servicenow\" class=\"wp-image-498190\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/testoauth-app-registries-servicenow-1200x562.webp 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/testoauth-app-registries-servicenow-300x140.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/testoauth-app-registries-servicenow-250x117.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/testoauth-app-registries-servicenow-768x360.webp 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/testoauth-app-registries-servicenow.webp 1322w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>There are different OAuth 2.0 authentication flows in the ServiceNow REST API.<br>By which you can authenticate your application and ServiceNow, click <a href=\"https:\/\/www.servicenow.com\/docs\/bundle\/yokohama-platform-security\/page\/integrate\/authentication\/concept\/oauth-inbound.html\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a> for more info.<\/p>\n\n\n\n<p>We\u2019ll use the <strong>Authorization code grant<\/strong> flow.<br>It uses a client secret as an extra authorization parameter to prevent spoofing servers.<br>Also, preferred for any server\/cloud application.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Authorize using OAuth 2.0<\/strong><\/h3>\n\n\n\n<p>Redirect to ServiceNow authorization endpoint: <br><strong><em>https:\/\/&lt;InstanceName&gt;.service-now.com\/oauth_auth.do<\/em><\/strong><br>With the following<strong> <\/strong>parameters:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>response_type<\/td><td>Must be code for this authentication flow.<\/td><\/tr><tr><td>client_id<\/td><td>The Consumer Key from the connected app definition.<\/td><\/tr><tr><td>redirect_uri<\/td><td>The Callback URL from the OAuth app definition.<\/td><\/tr><tr><td>state<\/td><td>Used to maintain state between the request and callback.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The final authorization URL will be as follows:<em><br><\/em><strong><em>https:\/\/&lt;InstanceName&gt;.service-now.com\/oauth_auth.do?response_type=code&amp;client_id=CLIENT_ID&amp;redirect_uri=REDIRECT_URI&amp;state=wk_state<\/em><\/strong><\/p>\n\n\n\n<p>This will redirect the user to the ServiceNow login window. After logging in, the app asks the user to \u2018Allow access\u2019 based on the selected OAuth scopes.<\/p>\n\n\n\n<p>After successful authorization, the browser redirects to the callback URL (redirect_uri) with a code parameter. This code is then used to request the access token.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" width=\"500\" height=\"540\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/servicenow-login-popup.webp\" alt=\"servicenow-rest-api-login-popup\" class=\"wp-image-498195\" style=\"width:476px;height:auto\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/servicenow-login-popup.webp 500w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/servicenow-login-popup-278x300.webp 278w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/servicenow-login-popup-231x249.webp 231w\" sizes=\"(max-width: 500px) 100vw, 500px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" width=\"500\" height=\"534\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/servicenow-allow-popup.webp\" alt=\"servicenow-rest-api-allow-access-popup\" class=\"wp-image-498196\" style=\"width:478px;height:auto\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/servicenow-allow-popup.webp 500w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/servicenow-allow-popup-281x300.webp 281w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/servicenow-allow-popup-233x249.webp 233w\" sizes=\"(max-width: 500px) 100vw, 500px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:43px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Get Access Token<\/strong><\/h3>\n\n\n\n<p>Create a <strong>POST<\/strong> request to the endpoint:<br><strong><em>https:\/\/&lt;InstanceName&gt;.service-now.com\/oauth_token.do<\/em><\/strong><br>With the following parameters:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>grant_type<\/td><td>The value must be authorization_code for this flow.<\/td><\/tr><tr><td>client_id<\/td><td>The Client ID from the OAuth app definition.<\/td><\/tr><tr><td>client_secret<\/td><td>The Client Secret from the OAuth app definition. Required for the Authorization code grant flow<\/td><\/tr><tr><td>redirect_uri<\/td><td>The Callback URL from the OAuth app definition.<\/td><\/tr><tr><td>code<\/td><td>The authorization code that the consumer must use to obtain the access and refresh tokens.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Below presented is a cURL example for the token request:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/** Code for retrieving ServiceNow access token via cURL.\n*\n* @category ServiceNow\n* @author Webkul Software Pvt Ltd &lt;support@webkul.com&gt;;\n* @copyright 2025 webkul.com. All Rights Reserved.\n* @license GNU General Public License version 2 or later; see LICENSE.txt\n* @link http:\/\/webkul.uvdesk.com\n*\/\n\n\/\/ POST body\n$postFields = http_build_query(&#091;\n   &#039;grant_type&#039;    =&gt; &#039;authorization_code&#039;,\n   &#039;client_id&#039;     =&gt; CLIENT_ID,\n   &#039;client_secret&#039; =&gt; CLIENT_SECRET,\n   &#039;redirect_uri&#039;  =&gt; REDIRECT_URI,\n   &#039;code&#039;          =&gt; $code,\n]);\n\n\/\/ Initialize cURL\n$ch = curl_init(&#039;https:\/\/&#039;.SN_INSTANCE.&#039;.service-now.com\/oauth_token.do&#039;);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_POST, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, &#091;\n   &#039;Content-Type: application\/x-www-form-urlencoded&#039;\n]);\n\n$response = curl_exec($ch);\n$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n$error = curl_error($ch);\ncurl_close($ch);<\/pre>\n\n\n\n<p><strong>The return result contains a few parameters from which we would use the following:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>access_token<\/td><td>The access token acts as a session ID that the application uses for making requests. This token should be protected as though it were user credentials.<\/td><\/tr><tr><td>token_type<\/td><td>Value is the Bearer for all responses that include an access token.<\/td><\/tr><tr><td>refresh_token<\/td><td>A token that can be used in the future to obtain new access tokens.<\/td><\/tr><tr><td>expires_in<\/td><td>Validity of the access_token<\/td><\/tr><tr><td>scope<\/td><td>The <strong>permissions<\/strong> (scopes) that were granted. Helps you understand what the token allows access to.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Get Account Data via ServiceNow Rest API<\/h3>\n\n\n\n<p>Now we will use the response from step 3 to access data from ServiceNow.<\/p>\n\n\n\n<p><strong>Below presented is a cURL example to get Account Data:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/** Code to retrieve ServiceNow Account Data via cURL..\n*\n* @category ServiceNow\n* @author Webkul Software Pvt Ltd &lt;support@webkul.com&gt;;\n* @copyright 2025 webkul.com. All Rights Reserved.\n* @license GNU General Public License version 2 or later; see LICENSE.txt\n* @link http:\/\/webkul.uvdesk.com\n*\/\n\n$url = &#039;https:\/\/&#039;.SN_INSTANCE.&#039;.service-now.com\/api\/now\/account&#039;;\n$ch = curl_init($url);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, &#091;\n   &quot;Authorization: Bearer $accessToken&quot;,   \/\/ ACCESS TOKEN FROM PREVIOUS STEP\n   &quot;Accept: application\/json&quot;\n]);\n\n$res = curl_exec($ch);\ncurl_close($ch);<\/pre>\n\n\n\n<p>To read more about different parameters, endpoints, and usability of the API, you may refer to the <a href=\"https:\/\/www.servicenow.com\/docs\/bundle\/yokohama-api-reference\/page\/build\/applications\/concept\/api-rest.html\" target=\"_blank\" rel=\"noreferrer noopener\">ServiceNow docs<\/a>.<\/p>\n\n\n\n<p>This blog gives a quick overview of setting up a basic REST connection with ServiceNow using minimal setup and simple concepts.<br>Hope it helps. For more info, check Reference <a href=\"https:\/\/www.servicenow.com\/docs\/bundle\/yokohama-security-management\/page\/product\/secops-integration-sir\/secops-integration-splunk-addon\/task\/configure-application-registry-splunk.html\" target=\"_blank\" rel=\"noreferrer noopener\">Link 1<\/a> &amp; Reference <a href=\"https:\/\/www.servicenow.com\/docs\/bundle\/yokohama-platform-security\/page\/administer\/security\/concept\/c_OAuthAuthorizationCodeFlow.html\" target=\"_blank\" rel=\"noreferrer noopener\">Link 2<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Support<\/h3>\n\n\n\n<p>If you face any issues or have suggestions, feel free to <a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">create a ticket<\/a> and share your feedback with us. <\/p>\n\n\n\n<p>While this blog focused on ServiceNow, we also specialize in <a href=\"https:\/\/webkul.com\/salesforce-consulting-services\/\" target=\"_blank\" rel=\"noreferrer noopener\">Salesforce CRM services<\/a>, offering tailored consulting and implementation solutions.<\/p>\n\n\n\n<p>Explore our complete range of CRM integrations and products visit <a class=\"\" href=\"https:\/\/eshopsync.com\">eshopsync.com<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide explains how to use the ServiceNow REST API with OAuth 2.0 and PHP to access and manage data in the latest Yokohama release. What Is OAuth 2.0 and How Does It Work with the ServiceNow REST API? OAuth 2.0 is a method that enables external applications to securely communicate with your ServiceNow instance&nbsp;without <a href=\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":719,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13573,12367],"class_list":["post-498170","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-crm-platform","tag-crm-solution"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ServiceNow REST API Developer Guide - Webkul Blog<\/title>\n<meta name=\"description\" content=\"This guide explains how to use the ServiceNow REST API with OAuth 2.0 and PHP to access and manage data in the latest Yokohama release.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ServiceNow REST API Developer Guide - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"This guide explains how to use the ServiceNow REST API with OAuth 2.0 and PHP to access and manage data in the latest Yokohama release.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-04T10:47:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-04T10:55:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-1200x562.webp\" \/>\n<meta name=\"author\" content=\"Anurag\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anurag\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/\"},\"author\":{\"name\":\"Anurag\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/27364505c8a4581d6506dc9b8138dc1a\"},\"headline\":\"ServiceNow REST API Developer Guide\",\"datePublished\":\"2025-07-04T10:47:06+00:00\",\"dateModified\":\"2025-07-04T10:55:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/\"},\"wordCount\":736,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-1200x562.webp\",\"keywords\":[\"CRM platform\",\"crm solution\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/\",\"url\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/\",\"name\":\"ServiceNow REST API Developer Guide - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-1200x562.webp\",\"datePublished\":\"2025-07-04T10:47:06+00:00\",\"dateModified\":\"2025-07-04T10:55:10+00:00\",\"description\":\"This guide explains how to use the ServiceNow REST API with OAuth 2.0 and PHP to access and manage data in the latest Yokohama release.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow.webp\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow.webp\",\"width\":1322,\"height\":619},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ServiceNow REST API Developer Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/27364505c8a4581d6506dc9b8138dc1a\",\"name\":\"Anurag\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bb5f26d2b05e8a321197db8805d3594aaddc9642e43002a56b9a4c6bf2be3837?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bb5f26d2b05e8a321197db8805d3594aaddc9642e43002a56b9a4c6bf2be3837?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Anurag\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/anurag-sf222\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ServiceNow REST API Developer Guide - Webkul Blog","description":"This guide explains how to use the ServiceNow REST API with OAuth 2.0 and PHP to access and manage data in the latest Yokohama release.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/","og_locale":"en_US","og_type":"article","og_title":"ServiceNow REST API Developer Guide - Webkul Blog","og_description":"This guide explains how to use the ServiceNow REST API with OAuth 2.0 and PHP to access and manage data in the latest Yokohama release.","og_url":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2025-07-04T10:47:06+00:00","article_modified_time":"2025-07-04T10:55:10+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-1200x562.webp","type":"","width":"","height":""}],"author":"Anurag","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Anurag","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/"},"author":{"name":"Anurag","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/27364505c8a4581d6506dc9b8138dc1a"},"headline":"ServiceNow REST API Developer Guide","datePublished":"2025-07-04T10:47:06+00:00","dateModified":"2025-07-04T10:55:10+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/"},"wordCount":736,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-1200x562.webp","keywords":["CRM platform","crm solution"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/","url":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/","name":"ServiceNow REST API Developer Guide - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow-1200x562.webp","datePublished":"2025-07-04T10:47:06+00:00","dateModified":"2025-07-04T10:55:10+00:00","description":"This guide explains how to use the ServiceNow REST API with OAuth 2.0 and PHP to access and manage data in the latest Yokohama release.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow.webp","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/07\/app-registries-servicenow.webp","width":1322,"height":619},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/servicenow-rest-api-developer-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"ServiceNow REST API Developer Guide"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/27364505c8a4581d6506dc9b8138dc1a","name":"Anurag","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bb5f26d2b05e8a321197db8805d3594aaddc9642e43002a56b9a4c6bf2be3837?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb5f26d2b05e8a321197db8805d3594aaddc9642e43002a56b9a4c6bf2be3837?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Anurag"},"url":"https:\/\/webkul.com\/blog\/author\/anurag-sf222\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/498170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/719"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=498170"}],"version-history":[{"count":13,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/498170\/revisions"}],"predecessor-version":[{"id":498245,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/498170\/revisions\/498245"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=498170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=498170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=498170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}