Refresh Session Token
Refreshes an expired session token to extend the session lifetime.
Use this endpoint when the session token has expired but you want to continue the conversation.
get/med-assist/session/{session_id}/refresh
Request
- Base URLhttps://api.eka.care
- AuthAPI key in header x-agent-id
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
session_idstring uuid required
The unique session identifier
Headers
x-sess-tokenstring required
The expired session token
Response
Token refreshed successfully
Example response
{
"session_id": "a349a41e-5d49-488a-b300-66ccbfdf16b3",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_at": "2024-01-01T14:00:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.