Get my current session Skip to main content
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
jitesh goeljitesh goel 

Get my current session

I want to get my session id which is created by okta when I'am singed in to another org using Okta SSO using SAML. For doing this I'm tried using the get session API ,ie,
"Get Session" but since I do not have any session id which I could use so this gave me a error :-
"{"errorCode":"E0000022","errorSummary":"The endpoint does not support the provided HTTP method","errorLink":"E0000022", "errorId":"oaeSfbcdYFWTTaNP8r1QW8siQ","errorCauses":[]}"
using the Okta API .

Then I used the "Get Current Session" Okta api, but from where can I get "okta_session_cookie}" because this is the first time I'm making the API callout so I don't have any cookie saved on my third party from where I 'm leveraging the Okta API.
Adrian MocanuAdrian Mocanu (Okta, Inc.)
Thank you for reaching out to Okta Support, my name is Adrian and I'll be handling your case. 
You can find more information about the session cookie on

I'll also attach the documentation -