Pass OAuth details in a header

Priyanka138
Mega Expert

Currently i am using POSTMAN to "Get Access Token" and then use that token to call an API of ServiceNow

I want to pass all the details in a single GET call in the header and get the response. Is it possible?

-Priyanka

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, to get a token from a ServiceNow instance using Postman or any REST integration tool\method,

you must POST (not GET) to <instancename>\oauth_token.do
your parameters need to be passed in the message body, not in the header.

Key                   Value
grant_type   'password'
client_id
client_secret
username
password