Session
Extend the life of the current user session.
A user session obtained from user/auth expires on an absolute deadline, 30 days after it was issued by default, and using the session does not push that deadline back. This operation replaces the deadline with a fresh full lifetime starting now, which is how a long-running client stays signed in without asking for credentials again. The period is a per-installation setting: see how long a session lasts.
It works only with a standard user session. Calling it with an API key returns error 4, "User or API key not found or session ended", even though the key itself is valid, because an API key never expires and has nothing to renew.
API actions
API base path: /user/session.
Operations that list no errors of their own return only the general error codes.
Extend the lifetime of the current session.
A session expires on an absolute deadline set when it was created, 30 days later by default, and using the session does not push that deadline back. This operation replaces the deadline with a fresh full lifetime starting now, so a session with 2 days left and one with 29 days left both end up with the same 30 days. The period is a per-installation setting, so treat 30 days as the default rather than a constant.
An API key has no expiry and needs no renewal.
Requires a session hash. An API key is rejected with error code 4, "User or API key not found or session ended", which is misleading: the key is valid, but this operation accepts standard sessions only.
Also accepts GET with the same parameters as query-string values.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
Session renewed
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error response object
POST /v2/user/session/renew HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true
}More in this section
Delivery session
Push token
Last updated
Was this helpful?