REST API Authentication not working

DimaB
Kilo Expert

Hi,

I'm trying to use REST API to get cases. I'm calling this endpoint /api/sn_customerservice/case using this as reference:
https://docs.servicenow.com/bundle/washingtondc-api-reference/page/integrate/inbound-rest/concept/ca...

 

My issue is I'm getting 401 as a response, even though I have username and password configured as Basic Auth (using Postman)

I've also added a new row to "REST API Auth Scopes" section in my instance (not sure if its relevant, just tried to make this work)

I'm using a developer instance.

 

What am I missing?

 

Thanks in advance

1 ACCEPTED SOLUTION

DimaB
Kilo Expert

I was able to figure it out. I used the wrong credentials. Instead if using dev account credentials I used servicenow credentials

View solution in original post

5 REPLIES 5

chrislopez
Giga Contributor

in my case, both basic auth and OAuth are not working in our testing instance. Dev is working fine.