Skip to main content
POST
List a user's sessions

Restrictions

Usage

  • start_time and end_time are Unix epoch milliseconds and both required; a window wider than 14 days returns InvalidParameter.
  • A session counts as the person’s when its latest row names that usr_id: a session they signed out of before its last page is not theirs.
  • At most 1000 sessions are listed, the most recent ones; truncated is true when the window holds more, and apps then counts all the person’s sessions per application rather than only the listed ones.
  • views lists up to 6 pages, a page viewed twice in a row listed once; view_count is the session’s real page count.
  • failed_requests is null with requests_expired true once the session started more than 15 days ago: its requests are no longer kept, so the count is unknown rather than zero.
  • With page set, matched lists the returned sessions that viewed a page whose path group or view name contains the text, ignoring case.

Authorizations

app_key
string
query
required

APP Key created in the Flashduty console under My → APP Key. Send it as the app_key query parameter or in the Fd-App-Key request header. Its effective access is the intersection of the key's permission scope and the creator's current role permissions. Keep it secret.

Body

application/json

List one user's sessions, newest first.

end_time
integer<int64>
required

End of the window, Unix timestamp in milliseconds. Must be later than start_time, and the window must not exceed 14 days.

Example:

1780358400000

start_time
integer<int64>
required

Start of the window, Unix timestamp in milliseconds; a session that started before it is left out.

Example:

1780272000000

usr_id
string
required

User ID whose sessions to follow, as the application reports it (usr.id).

Maximum string length: 255
page
string

Also report which returned sessions viewed a page whose path group or view name contains this text, ignoring case; no session is dropped.

Maximum string length: 255

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object

Everything the user did in the window, newest session first.