Hi, I’m having trouble retrieving and ending a user’s session via SessionID through the SessionsAPI.
After a user logs in to our application (through the Okta Hosted Sign-in widget), in my browser, I hit the endpoint “api/v1/sessions/me” to get the SessionID. This works as expected.
In Postman, I send a GET request to “api/v1/sessions/{sessionId}” just to see if the session is alive. I have an API token (with Super Admin role) in the header like so:
Authorization: SSWS {apiToken}
Every response I get is a 404 that looks like this:
{
“errorCode”: “E0000007”,
“errorSummary”: “Not found: Resource not found: {sessionId} (AppSession)”,
“errorLink”: “E0000007”,
“errorId”: “oae2gk6pHS0TEmhdzL5JYp0CA”,
“errorCauses”:
}
Ultimately, the goal is to end the session through the api by hitting the same endpoint with a DELETE request, but as you can imagine, I’m getting the same error.
What am I doing wrong?