sessions

List persistent sessions

List active persistent agent sessions for one environment, most recently updated first. Expired and internal sessions are excluded from sessions, total, and app_names. Session state omits keys in the reserved connic: namespace.

Required permission: sessions.view.

get/v1/projects/{project_id}/sessions/{environment_id}

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

environment_id, string uuid required

Environment ID from GET /environments.

Query parameters

search, string nullable

Case-insensitive session ID pattern. Text is matched anywhere; an unescaped percent (%) matches any sequence and an unescaped underscore (_) matches one character. An empty value applies no search filter.

app_name, string nullable

Only sessions with this exact app_name, as listed in app_names. An empty value applies no filter.

limit, integer

Maximum number of sessions to return.

offset, integer

Number of sessions to skip.

Response

Successful Response

SessionsResponse required
sessions, PersistentSession[] required

Sessions on this page, most recently updated first.

total, integer required

Sessions matching the filters, ignoring limit and offset.

app_names, string[] required

Distinct app_name values across all sessions in the environment, regardless of filters.

Changes

No recorded changes to this operation across all 17 revisions of this API.