REST API calls for a user in a domain separated instance

Hyperproof Test
Tera Contributor

We have an integration to pull table data from ServiceNow in our application. We ask the user for their instance id, username and password (we are using basic auth right now).

 

We are making API calls using the base URL of  <instance>.service-now.com/api/

 

A customer of ours is in domain separated instances.  What addition information would they need to provide and what is the format of the base URL for api calls?  The access their instance via https://<instance>service-now.com/<subdomain>

 

Thanks

 

 

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, I would expect that access\visibility would be controlled by the sys_user account used for authentication.

The API's are documents here

REST API | ServiceNow Developers

and this will include the URL's, you can also test\view these via the REST API Explorer in your instance.

- I would not expect domain to be included in a URL, unless in a specific filter\query outside of the base URL.


Perhaps you can clarify your question\requirements, are you expecting the user to access data outside of their domain visibility, or do you have a specific fault\issue found when testing?

 

I think our engineers have tracked it to a permissions issue with the account that our customer is authenticating with.  We are only expecting to have access to incidents within the sub-domain.