> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flashduty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List a user's sessions

> List one user's sessions across every RUM application the caller can read, newest first.

## Restrictions

| Aspect | Value |
| - | - |
| Rate limits | **200 requests/minute**; **10 requests/second** per account |
| Permissions | None — any valid `app_key` can call this operation |

## 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.


## OpenAPI

````yaml /api-reference/rum.openapi.en.json post /rum/journey/sessions
openapi: 3.1.0
info:
  description: >-
    Public HTTP API for the Flashduty incident management platform — incidents,
    notification templates, channels, schedules, monitors, RUM, and platform
    administration. Every operation is authenticated with an `app_key` query
    parameter created in the Flashduty console under My → APP Key (or sent in
    the `Fd-App-Key` header). Responses follow a uniform envelope: `{
    request_id, data }` on success, `{ request_id, error }` on failure.
  title: Flashduty Open API
  version: 1.0.0
servers:
  - description: Flashduty Open API
    url: https://api.flashcat.cloud
security:
  - AppKeyAuth: []
tags:
  - description: Manage Real User Monitoring (RUM) applications.
    name: RUM/Applications
  - description: Run RUM analytics queries over event data.
    name: RUM/Data query
  - description: Query and manage RUM error tracking issues and preset severity rules.
    name: RUM/Issues
  - description: >-
      Query RUM facet fields and their value distributions for building
      analytics filters.
    name: RUM/Facets
  - description: >-
      Manage and query RUM sourcemap files for browser, Android, and iOS error
      symbolication.
    name: RUM/Sourcemaps
  - description: Retrieve session replay metadata and recorded segments for RUM sessions.
    name: RUM/Session replay
  - description: >-
      Configure and inspect the rules that decide which RUM errors get ingested
      and stored for an application, including their edit history.
    name: RUM/Error ingestion rules
  - description: >-
      Manage per-application rules that assign a severity to matching front-end
      errors, plus their evaluation order and change history.
    name: RUM/Issue preset severity rules
  - description: Query the RUM resource record and current usage for the account.
    name: RUM/Resources
  - description: >-
      Create and manage RUM custom dashboards, their revision history and the
      trash.
    name: RUM/Dashboards
  - description: >-
      Define and inspect the behavior events that saved rules turn raw RUM
      actions into.
    name: RUM/Behavior events
  - description: >-
      Analyse conversion funnels over RUM sessions and visitors: results,
      trends, breakdowns, drop-off drivers and page flows.
    name: RUM/Funnels
  - description: >-
      Read page heatmaps: element ranking, click points, scroll depth and the
      replay frame used as background.
    name: RUM/Heatmaps
  - description: >-
      Look up one person across every RUM application: their sessions, what went
      wrong in them, a session's key events, and their page flow.
    name: RUM/User lookup
paths:
  /rum/journey/sessions:
    post:
      tags:
        - RUM/User lookup
      summary: List a user's sessions
      description: >-
        List one user's sessions across every RUM application the caller can
        read, newest first.
      operationId: rum-journey-read-sessions
      requestBody:
        content:
          application/json:
            example:
              start_time: 1780272000000
              end_time: 1780358400000
              usr_id: u_1024
              page: /checkout
            schema:
              $ref: '#/components/schemas/RumJourneySessionsRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                data:
                  user:
                    usr_id: u_1024
                    usr_name: Alice Chen
                    usr_email: alice@example.com
                  sessions:
                    - session_id: 3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30
                      application_id: app_3fK9mQ2xLp7VbN4cR8dW1y
                      start: 1780280400000
                      end: 1780282200000
                      live: false
                      device_type: Desktop
                      os: macOS
                      browser: Chrome
                      version: 4.12.0
                      views:
                        - /home
                        - /cart
                        - /checkout
                      view_count: 7
                      has_replay: true
                      errors: 1
                      crashes: 0
                      failed_requests: 2
                      requests_expired: false
                      slowest_load_ms: 842
                  apps:
                    - application_id: app_3fK9mQ2xLp7VbN4cR8dW1y
                      sessions: 1
                  truncated: false
                  matched:
                    - application_id: app_3fK9mQ2xLp7VbN4cR8dW1y
                      session_id: 3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessEnvelope'
                  - properties:
                      data:
                        $ref: '#/components/schemas/RumJourneySessionsResponse'
                    type: object
          description: Success
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    RumJourneySessionsRequest:
      description: List one user's sessions, newest first.
      properties:
        end_time:
          description: >-
            End of the window, Unix timestamp in milliseconds. Must be later
            than `start_time`, and the window must not exceed 14 days.
          example: 1780358400000
          format: int64
          type: integer
        page:
          description: >-
            Also report which returned sessions viewed a page whose path group
            or view name contains this text, ignoring case; no session is
            dropped.
          maxLength: 255
          type: string
        start_time:
          description: >-
            Start of the window, Unix timestamp in milliseconds; a session that
            started before it is left out.
          example: 1780272000000
          format: int64
          type: integer
        usr_id:
          description: >-
            User ID whose sessions to follow, as the application reports it
            (`usr.id`).
          maxLength: 255
          type: string
      required:
        - start_time
        - end_time
        - usr_id
      type: object
    SuccessEnvelope:
      description: >-
        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`.
      properties:
        data:
          description: >-
            Operation-specific payload, documented in each operation's 200
            response. Operations without a payload return `{}` or omit `data`
            entirely.
        request_id:
          description: >-
            Unique ID for this request. Mirrored in the Flashcat-Request-Id
            response header. Include it when reporting issues.
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          type: string
      required:
        - request_id
      type: object
    RumJourneySessionsResponse:
      description: Everything the user did in the window, newest session first.
      properties:
        apps:
          description: The person's sessions per application, most first.
          items:
            $ref: '#/components/schemas/RumJourneyAppSessions'
          type: array
        matched:
          description: >-
            Only when `page` was sent: the returned sessions that viewed a
            matching page, as `{application_id, session_id}`; empty when none
            did. They all stay in `sessions`.
          items:
            $ref: '#/components/schemas/RumJourneySessionID'
          type:
            - array
            - 'null'
        sessions:
          description: Up to 1000 sessions, the most recent first.
          items:
            $ref: '#/components/schemas/RumJourneySession'
          type: array
        truncated:
          description: >-
            Whether the window holds more than 1000 sessions, so only the latest
            are listed.
          type: boolean
        user:
          $ref: '#/components/schemas/RumJourneyUser'
      required:
        - user
        - sessions
        - apps
        - truncated
      type: object
    RumJourneyAppSessions:
      description: How many sessions the user had in one application.
      properties:
        application_id:
          description: RUM application ID.
          type: string
        sessions:
          description: >-
            Sessions the person had in the application inside the window: all of
            them, also those beyond the 1000 listed.
          format: int64
          type: integer
      required:
        - application_id
        - sessions
      type: object
    RumJourneySessionID:
      description: 'Names a session: its ID is only unique within its application.'
      properties:
        application_id:
          description: RUM application ID.
          type: string
        session_id:
          description: Session identifier within its application.
          type: string
      required:
        - application_id
        - session_id
      type: object
    RumJourneySession:
      description: One session of the user, with its pages and what went wrong in it.
      properties:
        application_id:
          description: >-
            Application the session belongs to; a session ID is only unique
            within it.
          type: string
        browser:
          description: Browser the session reported.
          type: string
        crashes:
          description: Crashes the session reported.
          format: int64
          type: integer
        device_type:
          description: Device type the session reported.
          type: string
        end:
          description: >-
            When the session ended, Unix timestamp in milliseconds; never
            earlier than `start`.
          format: int64
          type: integer
        errors:
          description: Errors the session reported.
          format: int64
          type: integer
        failed_requests:
          description: >-
            Failed requests the session had: 5xx answers or no answer at all
            from the page's own site. Null when `requests_expired` is true,
            because they are no longer kept.
          format: int64
          type:
            - integer
            - 'null'
        has_replay:
          description: Whether the session has a replay to open.
          type: boolean
        live:
          description: >-
            Whether the session was still active when it was read
            (`session_is_active`).
          type: boolean
        os:
          description: Operating system the session reported.
          type: string
        requests_expired:
          description: >-
            Whether the session started more than 15 days ago, past the
            retention of its requests and app launch: `failed_requests` and a
            native app's `slowest_load_ms` are then unknown.
          type: boolean
        session_id:
          description: RUM session ID, unique only within `application_id`.
          type: string
        slowest_load_ms:
          description: >-
            Slowest page load of the session, in milliseconds: largest
            contentful paint on the web, first render in mini-programs, cold
            start for a native app. Null when there is none.
          format: int64
          type:
            - integer
            - 'null'
        start:
          description: When the session started, Unix timestamp in milliseconds.
          format: int64
          type: integer
        version:
          description: Application version the session reported.
          type: string
        view_count:
          description: Views the session had.
          format: int64
          type: integer
        views:
          description: >-
            Up to 6 pages the session viewed, in order; a page viewed again
            right after itself is listed once.
          items:
            type: string
          type: array
      required:
        - session_id
        - application_id
        - start
        - end
        - live
        - device_type
        - os
        - browser
        - version
        - views
        - view_count
        - has_replay
        - errors
        - crashes
        - requests_expired
        - failed_requests
        - slowest_load_ms
      type: object
    RumJourneyUser:
      description: >-
        Who the user id belongs to: the most recent name and email its sessions
        report.
      properties:
        usr_email:
          description: >-
            Most recent email the person's sessions report; empty when no
            session sets one.
          type: string
        usr_id:
          description: User ID the session rows report (`usr.id`).
          type: string
        usr_name:
          description: >-
            Most recent user name the person's sessions report; empty when no
            session sets one.
          type: string
      required:
        - usr_id
        - usr_name
        - usr_email
      type: object
    ErrorResponse:
      description: Response envelope for errors. `error` is required; `data` is absent.
      properties:
        error:
          $ref: '#/components/schemas/DutyError'
        request_id:
          description: >-
            Unique trace ID of this request; include it when reporting issues so
            logs can be located.
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          type: string
      required:
        - request_id
        - error
      type: object
    DutyError:
      description: >-
        Error payload inside the response envelope. Present only on non-2xx
        responses.
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: >-
            Human-readable error message in the response language (`locale` /
            `lang` query parameter or `Accept-Language` header). May name the
            offending field; do not parse it.
          example: The specified parameter template_id is not valid.
      required:
        - code
        - message
      type: object
    ErrorCode:
      description: >-
        Error code. Every failed response sets `error.code` to one of these
        stable strings; branch on it rather than on the HTTP status.


        | Code | HTTP | Meaning |

        |---|---|---|

        | `OK` | 200 | Reserved; never returned on a failed request. |

        | `InvalidParameter` | 400 | A parameter is missing, has the wrong type,
        or failed validation; `message` usually names the field. |

        | `BadRequest` | 400 | The request breaks a business rule or conflicts
        with the current state of an object; `message` says which. |

        | `InvalidContentType` | 400 | The body is not sent as
        `application/json`. |

        | `ResourceNotFound` | 400 | The referenced object does not exist in
        this account or was deleted. Returned as HTTP 400, not 404. |

        | `NoLicense` | 400 | The account's plan does not include the feature, a
        plan quota is used up, the plan has expired, or credits are
        insufficient. |

        | `ReferenceExist` | 400 | The object is still referenced by other
        objects, so it cannot be deleted. |

        | `Unauthorized` | 401 | The APP Key is missing, invalid, or deleted. |

        | `BalanceNotEnough` | 402 | Console-only (billing); not returned by
        Open API operations. |

        | `AccessDenied` | 403 | The APP Key's permission scope or the creator's
        role does not allow this operation or object. |

        | `RouteNotFound` | 404 | No operation matches the HTTP method and path.
        |

        | `MethodNotAllowed` | 405 | The path exists but not for this HTTP
        method. |

        | `UndonedOrderExist` | 409 | Console-only (billing); not returned by
        Open API operations. |

        | `EntityTooLarge` | 413 | The request body exceeds the size limit. |

        | `RequestLocked` | 423 | Console-only (sign-in protection); not
        returned by Open API operations. |

        | `RequestVerifyRequired` | 428 | Console-only (verification code); not
        returned by Open API operations. |

        | `DangerousOperation` | 428 | Console-only (MFA for high-risk actions);
        not returned by Open API operations. |

        | `RequestTooFrequently` | 429 | A rate limit was hit; wait for the
        `Flashcat-Request-Rate-Limit-Delay` response header (seconds) before
        retrying. |

        | `InternalError` | 500 | Unexpected server error; retry with backoff
        and include `request_id` when reporting. |

        | `ServiceUnavailable` | 503 | A backend dependency is overloaded or
        unavailable; retry with backoff. |
      enum:
        - OK
        - InvalidParameter
        - BadRequest
        - InvalidContentType
        - ResourceNotFound
        - NoLicense
        - ReferenceExist
        - Unauthorized
        - BalanceNotEnough
        - AccessDenied
        - RouteNotFound
        - MethodNotAllowed
        - UndonedOrderExist
        - EntityTooLarge
        - RequestLocked
        - RequestVerifyRequired
        - DangerousOperation
        - RequestTooFrequently
        - InternalError
        - ServiceUnavailable
      example: InvalidParameter
      type: string
      x-enumDescriptions:
        OK: Reserved; never returned on a failed request.
        InvalidParameter: >-
          A parameter is missing, has the wrong type, or failed validation;
          `message` usually names the field.
        BadRequest: >-
          The request breaks a business rule or conflicts with the current state
          of an object; `message` says which.
        InvalidContentType: The body is not sent as `application/json`.
        ResourceNotFound: >-
          The referenced object does not exist in this account or was deleted.
          Returned as HTTP 400, not 404.
        NoLicense: >-
          The account's plan does not include the feature, a plan quota is used
          up, the plan has expired, or credits are insufficient.
        ReferenceExist: >-
          The object is still referenced by other objects, so it cannot be
          deleted.
        Unauthorized: The APP Key is missing, invalid, or deleted.
        BalanceNotEnough: Console-only (billing); not returned by Open API operations.
        AccessDenied: >-
          The APP Key's permission scope or the creator's role does not allow
          this operation or object.
        RouteNotFound: No operation matches the HTTP method and path.
        MethodNotAllowed: The path exists but not for this HTTP method.
        UndonedOrderExist: Console-only (billing); not returned by Open API operations.
        EntityTooLarge: The request body exceeds the size limit.
        RequestLocked: >-
          Console-only (sign-in protection); not returned by Open API
          operations.
        RequestVerifyRequired: Console-only (verification code); not returned by Open API operations.
        DangerousOperation: >-
          Console-only (MFA for high-risk actions); not returned by Open API
          operations.
        RequestTooFrequently: >-
          A rate limit was hit; wait for the `Flashcat-Request-Rate-Limit-Delay`
          response header (seconds) before retrying.
        InternalError: >-
          Unexpected server error; retry with backoff and include `request_id`
          when reporting.
        ServiceUnavailable: A backend dependency is overloaded or unavailable; retry with backoff.
  responses:
    BadRequest:
      content:
        application/json:
          examples:
            missingParameter:
              value:
                error:
                  code: InvalidParameter
                  message: The specified parameter is not valid.
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Invalid request — usually a missing or malformed parameter.
    Unauthorized:
      content:
        application/json:
          examples:
            missingAppKey:
              value:
                error:
                  code: Unauthorized
                  message: You are unauthorized.
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Missing or invalid app_key.
    Forbidden:
      content:
        application/json:
          examples:
            noEditPermission:
              value:
                error:
                  code: AccessDenied
                  message: Access Denied.
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: >-
        The app_key is valid, but its permission scope or the creator's role
        does not allow this operation or object.
    TooManyRequests:
      content:
        application/json:
          examples:
            rateLimited:
              value:
                error:
                  code: RequestTooFrequently
                  message: Request too frequently.
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: >-
        Rate limit hit. Wait for the number of seconds in
        `Flashcat-Request-Rate-Limit-Delay`, then retry.
      headers:
        Flashcat-Request-Rate-Limit-Delay:
          description: >-
            Seconds until the current rate-limit window resets. Absent when the
            request was rejected by the gateway's global protection limit.
          schema:
            type: integer
            minimum: 0
    ServerError:
      content:
        application/json:
          examples:
            internal:
              value:
                error:
                  code: InternalError
                  message: >-
                    We encountered an internal error, and it has been reported.
                    Please try again later.
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Unexpected server-side error. Include the request_id when reporting.
  securitySchemes:
    AppKeyAuth:
      description: >-
        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.
      in: query
      name: app_key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.