Get persistent session
Get one active persistent session by its exact app_name, user_id, and session ID, with its most recent events. Session state omits keys in the reserved connic: namespace. Expired and internal sessions return 404.
Required permission: sessions.view.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
Environment ID from GET /environments.
Session ID from GET /sessions/{environment_id}.
Query parameters
The session's app_name from GET /sessions/{environment_id}.
The session's user_id from GET /sessions/{environment_id}.
Maximum number of most recent events to return.
Response
Successful Response
session-<agent name>-<key>, where the key is the value resolved from the agent's session.key, or default when no key is set.
runner- followed by the agent name with hyphens replaced by underscores.
User identity of the session. Pass it with app_name to get or delete this exact session.
Session state saved by the agent's runs. Keys in the reserved connic: namespace are omitted.
Total events recorded in the session.
Expiry time, extended each time a run uses the session; null when the agent sets no session.ttl.
Time a run last used or updated the session.
Most recent events in ascending event_index order, up to event_limit.
Changes
No recorded changes to this operation across all 17 revisions of this API.