List a user's sessions
curl --request POST \
--url 'https://api.flashcat.cloud/rum/journey/sessions?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"start_time": 1780272000000,
"end_time": 1780358400000,
"usr_id": "u_1024",
"page": "/checkout"
}
'import requests
url = "https://api.flashcat.cloud/rum/journey/sessions?app_key="
payload = {
"start_time": 1780272000000,
"end_time": 1780358400000,
"usr_id": "u_1024",
"page": "/checkout"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
start_time: 1780272000000,
end_time: 1780358400000,
usr_id: 'u_1024',
page: '/checkout'
})
};
fetch('https://api.flashcat.cloud/rum/journey/sessions?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/rum/journey/sessions?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start_time' => 1780272000000,
'end_time' => 1780358400000,
'usr_id' => 'u_1024',
'page' => '/checkout'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/rum/journey/sessions?app_key="
payload := strings.NewReader("{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"usr_id\": \"u_1024\",\n \"page\": \"/checkout\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/rum/journey/sessions?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"usr_id\": \"u_1024\",\n \"page\": \"/checkout\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/rum/journey/sessions?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"usr_id\": \"u_1024\",\n \"page\": \"/checkout\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}{
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}{
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}{
"error": {
"code": "AccessDenied",
"message": "Access Denied."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}{
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}{
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}User lookup
List a user's sessions
List one user’s sessions across every RUM application the caller can read, newest first.
POST
/
rum
/
journey
/
sessions
List a user's sessions
curl --request POST \
--url 'https://api.flashcat.cloud/rum/journey/sessions?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"start_time": 1780272000000,
"end_time": 1780358400000,
"usr_id": "u_1024",
"page": "/checkout"
}
'import requests
url = "https://api.flashcat.cloud/rum/journey/sessions?app_key="
payload = {
"start_time": 1780272000000,
"end_time": 1780358400000,
"usr_id": "u_1024",
"page": "/checkout"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
start_time: 1780272000000,
end_time: 1780358400000,
usr_id: 'u_1024',
page: '/checkout'
})
};
fetch('https://api.flashcat.cloud/rum/journey/sessions?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/rum/journey/sessions?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start_time' => 1780272000000,
'end_time' => 1780358400000,
'usr_id' => 'u_1024',
'page' => '/checkout'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/rum/journey/sessions?app_key="
payload := strings.NewReader("{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"usr_id\": \"u_1024\",\n \"page\": \"/checkout\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/rum/journey/sessions?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"usr_id\": \"u_1024\",\n \"page\": \"/checkout\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/rum/journey/sessions?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"usr_id\": \"u_1024\",\n \"page\": \"/checkout\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}{
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}{
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}{
"error": {
"code": "AccessDenied",
"message": "Access Denied."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}{
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}{
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}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_timeandend_timeare Unix epoch milliseconds and both required; a window wider than 14 days returnsInvalidParameter.- 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;
truncatedis true when the window holds more, andappsthen counts all the person’s sessions per application rather than only the listed ones. viewslists up to 6 pages, a page viewed twice in a row listed once;view_countis the session’s real page count.failed_requestsis null withrequests_expiredtrue once the session started more than 15 days ago: its requests are no longer kept, so the count is unknown rather than zero.- With
pageset,matchedlists the returned sessions that viewed a page whose path group or view name contains the text, ignoring case.
Authorizations
Body
application/json
List one user's sessions, newest first.
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.
Was this page helpful?