- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 01:48 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 02:11 AM
I was able to figure it out. I used the wrong credentials. Instead if using dev account credentials I used servicenow credentials

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 01:51 AM
Hi there,
Can you share test details?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 01:55 AM
Sure @Mark Roethof
can you please be more specific? what would you like to get?
I've created a developer account and added some cases there, then tried to use the api to get the cases I created and got 401 as a response using this call
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 02:11 AM
I was able to figure it out. I used the wrong credentials. Instead if using dev account credentials I used servicenow credentials
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2024 04:08 AM
Glad you were able to figure it out.
401 - unauthorized. Ensure you have the right account/credentials, and the right access to the resource your trying to transact create, read, update or delete (CRUD) operations.