Extend a Session
Calling this endpoint extends the given session ID. If session.earliest_possible_extend is set it will only extend the session after the specified time has passed.
This endpoint returns per default a 204 No Content response on success. Older Ory Network projects may return a 200 OK response with the session in the body. Returning the session as part of the response will be deprecated in the future and should not be relied upon.
This endpoint ignores consecutive requests to extend the same session and returns a 404 error in those scenarios. This endpoint also returns 404 errors if the session does not exist.
Retrieve the session ID from the /sessions/whoami endpoint / toSession SDK method.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/admin/sessions/{id}/extend
- AuthAPI key in header Authorization
Path parameters
ID is the session's ID.
Response
session
Example response
{
"identity": {
"verifiable_addresses": [
{
"created_at": "2014-01-01T23:28:56.782Z",
"updated_at": "2014-01-01T23:28:56.782Z",
"verified": true,
"via": "email"
}
]
}
}Changes
No recorded changes to this operation across all 65 revisions of this API.