
mrqma (mrqma) asked a question.
Hi Team,
After calling the OKTA user session clearing API the session is killed across all the devices but the API is showing failed and not returning the status code 204.
But when I open the failed API and see the response header there I can see the 204 status code. So the functionality is working as expected but the API is failing. Kindly help on this team.
Reference: https://developer.okta.com/docs/reference/api/users/*user-sessions
Let me know if you need further information.
Thanks & Regards,
Subash.E

Hello Subash,
I've escalated your question to our Customer Support team. They will respond to you shortly here.
Thanks!
Tim
Okta, Inc.
This is Robert from Okta support.
In order to call the Session endpoint, you need to call it on /api/v1/sessions instead of /api/v1/users
You can see the following documentation for reference:
https://developer.okta.com/docs/reference/api/sessions/
If this doesn't work for you, I recommend opening a case with us in order to further investigate the matter.
Hello Robert,
/api/v1/sessions is also failing for me. Please see the screen shot below:
Please suggest how to resolve this issue.
https://developer.okta.com/docs/reference/api/sessions/#close-session
Subash.E