Try asking a question about Knot to the AI assistant, or install the MCP server or Knot skill to build with AI right from your IDE.
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"
}Extend a session.
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 (Documentation Index
Fetch the complete documentation index at: https://docs.knotapi.com/llms.txt
Use this file to discover all available pages before exploring further.
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.Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.
The input parameters required for extending a session.
Specific session.
"915efe72-5136-4652-z91q-d9d48003c102"
Successful request.
The extended session.
"915efe72-5136-4652-z91q-d9d48003c102"
Was this page helpful?
Suggestions