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

Hi,

You have to use the API key given by third party vendor here and then ask them to pass that in header when they make call to servicenow.

Thanks,
Ashutosh

I could see the access token and refresh token. 

we need to change the refresh token every 100 day right.

Is this manually to change the refresh token every 100 days? How this process will happened in real time. 

Same question for Access token also.

It could be help full for inbound integration using oAuth.

vidit1
Tera Contributor

Hi Rajesh,

 

I am also having the same requirements. Did you get the solution for your problem. If yes, could you please tell me how did you implemented API Key based authentication.

 

Thanks,

Vidit