Get my current session Skip to main content
https://support.okta.com/help/answers?id=9062a000000xzwuqag&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
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  developer.okta.com

I'll also attach the documentation - https://developer.okta.com/use_cases/authentication/session_cookie