Outbound Rest Integration API Key

dvelloriy
Kilo Sage

Hi Community,

I am trying to create an outbound REST API and using API key in HTTP header.

find_real_file.png

When i click "Test", it gives me error "code: 403 - Forbidden username/password combo".

Do we really need basic authentication(username/password) if we were provided API key? We dont have any active mid servers in our environment.

Any suggestions?

 

Thanks

David.

7 REPLIES 7

Prateek kumar
Mega Sage

I found a HI article that might help.

https://hi.service-now.com/kb_view.do?sysparm_article=KB0720934


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

dvelloriy
Kilo Sage

Hi Prateek,

No, this is not helpful. I am not using basic authentication. My question was more on API key. i tried this though still the same error.

harinalamalapu
Giga Expert

Hi David,

Did you get around this issue ? I am also trying to make an outbound REST call using an API key, but ran into a similar one.

 

Thanks,

Hari

Ryan Grutter
ServiceNow Employee
ServiceNow Employee

David, are you still dealing with this? Do you have any documentation you can share for the service you're trying to connect to? The answer will likely depend on the format they require when passing the API key.

For anyone else who might find this thread, I recently solved it by creating a basic auth profile where the username was my API key and the password was just a single character. The external service required us to pass the key in the same format of username:password, so we used basic authentication to meet that need and it was successful.