extendSession
Requires an authenticated session.
Restarts the expiry of the current session for the full session duration, 7 days unless configured otherwise. Needs the session token header and an active session.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation ExtendSession {
extendSession {
expiresAt
sessionToken
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ExtendSession {\n extendSession {\n expiresAt\n sessionToken\n }\n}"
}
EOF
Response:
{
"data": {
"extendSession": {
"expiresAt": "2025-01-15T00:00:00Z",
"sessionToken": "string"
}
}
}
extendSession: ExtendSessionResponse!
Type
ExtendSessionResponse object
The result of extending a session.