POST
/
session
/
extend
curl --request POST \
  --url https://development.knotapi.com/session/extend \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "session_id": "915efe72-5136-4652-z91q-d9d48003c102"
}'
{
  "session": "915efe72-5136-4652-z91q-d9d48003c102"
}

This endpoint allows you to extend an existing session (session_id) for another 30 minutes while a user has the SDK open, when you receive the refresh session request event in the onEvent callback.

If the SDK is closed, it is best practice to create a new session before re-initializing the SDK using Create Session.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
The input parameters required for extending a session.
session_id
string
required

Specific session.

Example:

"915efe72-5136-4652-z91q-d9d48003c102"

Response

200
application/json
Successful request.
session
string

The extended session.

Example:

"915efe72-5136-4652-z91q-d9d48003c102"