REST API sample documentation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2024 11:20 AM
I am writing an application that will have to retrieve incident details from ServiceNow, via the REST API. I have a developer servicenow instance (i.e. (https://dev123456.service-now.com/), and I believe that I want to be calling the troubleTicket endpoint. My dev instance comes with an existing incident ticket premade.
A couple of issues / questions:
1. I cannot find the associated namespace, sn_ind_tsm_sdwan, in the REST API explorer; do I have to do something special to "enable" this endpoint?
2. Where is the instruction on how to get an access token or security credentials for the REST API interface? I understand that I have to invoke something like https://dev123456.service-now.com/api/sn_ind_tsm_sdwan/ticket/troubleTicket , but where can I find out how to create a token and/or what header or request field requires it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2024 01:42 AM
Hello,
Inline answers to the above 2 queries:
1. Verify if the namespace sn_ind_tsm_sdwan associated plugin is activated, ensure Scope selection in your top right settings, cross check the User logged in has admin or rest_api_explorer access.
2. Did you setup the OAuth2.0 which is the path towards Access token. With ClientID, ClientSecret and target RedirectURI (https://dev123456.service-now.com) registered, you can go to next step in obtaining OAuth2.0 Token.
Exact steps are found here at SN Support Article - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725643
Hope this helps!
Regards, Akash
_____________________________________________________________________________
Please mark it as helpful👍 or Accept Solution✔️ based on the response to your query.
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.