Okta API call using API Key throws 403 Error

I am calling Okta API https://XXXX.oktapreview.com/api/v1/users using API Key via postman
In Authorization tab in postman, I have selected API Token and provided API key and value
I have created API Key from Okta menu security->API->token
I am getting below error , my API Key is valid and not expired … I would appreciate if anyone can let me know what I am missing

{

"errorCode": "E0000005",

"errorSummary": "Invalid session",

"errorLink": "E0000005",

"errorId": "oaeC8aV9kVKTXaCgON99MqDLg",

"errorCauses": []

}

@akjenamca Are you testing in Postman. Can you please check if you have the correct headers?

  1. You should have following headers:

{

“Accept”: “application/json”,

“Content-Type”: “application/json”,

“Authorization”: “SSWS $apiKey”

}

Is it possible you added the request info in postman?

Thank you so much, Lijia !!
Yes, I am using postman to test this. After setting “Authorization”: “SSWS *******” in header section, it started working. I was passing this token in Authorization tab which was the issue. It does not matter to set this token in authorization tab but it needs to be set in header section.

Thanks
Ashok Jena

@akjenamca You are so welcome~ Cool. It is glad to know the request is working now.