API Authentication Key Value

I’ve been including a ton of API calls in my workflow automations and so far it’s been working perfectly fine using basic auth.

I’ve been trying to update these in light of basic auth being (finally!) deprecated in May, but I can’t find anywhere in the API documentation that says what key to use in the header.

Everything I’ve tried so far has resulted in a 403.

For example I’ve been trying to hit /api/v2/assets/ and got for the following response:

I’m sure I’ve seen screenshots of it working for someone with an Authorization:API_key header somewhere.

Hello.
For everyone who is dealing with the Authorization API Key, here is what helped me:

  1. Customer send me API Key, which I encoded, using https://www.base64encode.org/
  2. I’ve added "Basic " to encoded API Key. so it look like this: “Basic ”. This is the value.
  3. In Postman for Key I used “Authorization”.

In Servicenow I chose api_key_credentials, and API Key is the “Basic ” value.

Unfortunatelly, it’s very bad explained in docs, and I spent too much time for this. Hope it will help :slight_smile: