How to use API Key authentication

Rajesh111
Kilo Contributor

Hi All, 

Currently I am using import set API for receiving the inbound message from third party application and I am using basic authentication for security purpose.

But I need to use the APIKey authentication type for inbound integration. I think import set API doesn't accept the API Key authentication. so I need to change to scripted REST API.

Previously I haven't worked on the Scripted REST API to receive data from third party application and also not sure how to generate APIKey and how to use that key and what I need to share with third party application owners.(Key)

 

Basically I need the below information:

1. How to get the JSON request from Scripted REST API (Inbound)

2. How to use API key for authentication and what Information we need to share with third party application support consultant. If basic authentication, we will share username and password right, so for API Key what type of information will be needed for the third party application to communicate with SNOW.

Thanks,

 

 

1 ACCEPTED SOLUTION
8 REPLIES 8

Rajesh111
Kilo Contributor

Hi Ashutosh Munot,

 

Thanks for your kind response. I am new to SNOW, so I am not able to understand those sites.

I am already gone through the developer sites and docs sites which you have mentioned above, but those sites only provided the creating the API Key. But I want to know the full flow. How to use that with real time example.

 

In the below site, I could see only the Basic and oAuth Authentication.

https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=r_RMV2-setAuthenticationProfile_S_S

 

Can you please provide the real time example that explains the below steps.

Step 1: Creating API Key.

Step 2: Creating Scripted Web Service with API Key authentication to get the inbound message from third party application.

Step 3: Share the API key to third party

Step 4: Get the request from third party application

Step 4: Using the inbound message, create one incident in incident table (Optional)

 

Thanks,

Hi Ashutosh Munot,

 

I think the link which you provided was related to oAuth.

But I am searching for API Key authentication.