Issue a short-lived session handoff token.
POST
/api/sessions
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/sessions \ --header 'Content-Type: application/json' \ --data '{ "session_id": "sess_123", "rp_origin": "https://app.example.com" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
session_id
required
string
rp_origin
string format: uri
Example
{ "session_id": "sess_123", "rp_origin": "https://app.example.com"}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
token
required
string
expires_in
required
integer
session_id
required
string
Example
{ "token": "session_token_123", "expires_in": 300, "session_id": "sess_123"}