Session

Create Session with Session Token

Creates a new session for a user with a valid session token. Use this API if, for example, you want to set the session cookie yourself instead of allowing Okta to set it, or want to hold the session ID in order to delete a session via the API instead of visiting the logout URL.

post/api/v1/sessions

Request

  • Base URL
    https://your-subdomain.okta.com
  • Auth
    API key in header Authorization

Request body

sessionTokenstring

Response

Success

_linksobject
amrSessionAuthenticationMethod[]
createdAtstring date-time
expiresAtstring date-time
idstring
lastFactorVerificationstring date-time
lastPasswordVerificationstring date-time
loginstring
status'ACTIVE' | 'MFA_ENROLL' | 'MFA_REQUIRED'
userIdstring

Changes

No recorded changes to this operation across all 1 revision of this API.