How to set up your ServiceNow Instance as an OAuth ClientDescriptionThis article explains how to set up your ServiceNow Instance as an OAuth Client using the Grant Type "Resource Owner Password Credentials", so that both an Access and Refresh Token can be provided to access the instance. Release or EnvironmentAll releases.InstructionsSetting up your ServiceNow Instance as an OAuth Client Navigate to Application Registry (System OAuth > Application Registry).Click on "New" and select "Create an OAuth API endpoint for external clients".Fill out the form according to your requirement and click "Submit". If you are unsure then populating the "Name" field will suffice.Note: Please note down the "Client ID" and "Client Secret" as they will be used later. Obtaining the Access and Refresh Token using Postman Open Postman and create a new Request.Set the REST Method to "POST", and the Request URL to "https://<instance_name>.service-now.com/oauth_token.do".Select the "Body" tab, and check "x-www-form-url-encoded".Populate the KEY:VALUE pairs according to your confirmation. This should be done in body section only: grant_type : passwordclient_id : <client_id from previous section>client_secret : <client_secret from previous section>username : <username to authenticate with the instance>password : <password to authenticate with the instance> Click "Send" and you should receive a response similar to below with both Access and Refresh Token. {"access_token": "CH1XAvt8FU1yjsRHq-ixDB1Fct4mpcztmvlD_2Wfu_F83thGqcPVfjvHsf8HvBi_ByeMsPXz1Igd5OYdADfXFw","refresh_token": "EuoV22-H28J_frduuMUlKXcuJ-tFz9F2Pe_PSNa3Ml3H8bzG4FIn8ChCcmtLJkMeP_T4a-MBI-c6YRW_1D4Mcw","scope": "useraccount","token_type": "Bearer","expires_in": 1799} Access a resource on your ServiceNow instance using the Access Token Open Postman and create a new Request.Set the REST Method to "GET", and the Request URL to the resource endpoint.eg. https://<instance_name>.service-now.com/api/now/table/incident?sysparm_limit=1Click on the "Auth" tab and set the "Type" to "No Auth".Click on the "Headers" tab and configure the below KEY:VALUE pair with the Access Token. Authorization : Bearer <access_token from previous section> Click "Send" and you should receive the response payload for your resource. Using the Refresh Token to renew the Access Token Open Postman and create a new Request.Set the REST Method to "POST", and the Request URL to "https://<instance_name>.service-now.com/oauth_token.do".Select the "Body" tab, and check "x-www-form-url-encoded".Populate the KEY:VALUE pairs according to your confirmation. grant_type : refresh_tokenclient_id : <client_id from previous section>client_secret : <client_secret from previous section>refresh_token : <refresh_token from previous section> Click "Send" and you should receive a response similar to below with a new Access Token. {"access_token": "Y5KagMC8REDaILJL5Ohvg1SauPn36iCC2kV8-miwVEjy7j6AjJtY9lcsA5gvOC7EtFDBGd9Zw7PB-2XA4rs0XA","refresh_token": "EuoV22-H28J_frduuMUlKXcuJ-tFz9F2Pe_PSNa3Ml3H8bzG4FIn8ChCcmtLJkMeP_T4a-MBI-c6YRW_1D4Mcw","scope": "useraccount","token_type": "Bearer","expires_in": 1799}