List a session's key events
curl --request POST \
--url 'https://api.flashcat.cloud/rum/journey/events?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"start_time": 1780272000000,
"end_time": 1780358400000,
"application_id": "app_3fK9mQ2xLp7VbN4cR8dW1y",
"session_id": "3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30"
}
'import requests
url = "https://api.flashcat.cloud/rum/journey/events?app_key="
payload = {
"start_time": 1780272000000,
"end_time": 1780358400000,
"application_id": "app_3fK9mQ2xLp7VbN4cR8dW1y",
"session_id": "3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30"
}
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,
application_id: 'app_3fK9mQ2xLp7VbN4cR8dW1y',
session_id: '3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30'
})
};
fetch('https://api.flashcat.cloud/rum/journey/events?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/events?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,
'application_id' => 'app_3fK9mQ2xLp7VbN4cR8dW1y',
'session_id' => '3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30'
]),
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/events?app_key="
payload := strings.NewReader("{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"application_id\": \"app_3fK9mQ2xLp7VbN4cR8dW1y\",\n \"session_id\": \"3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30\"\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/events?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"application_id\": \"app_3fK9mQ2xLp7VbN4cR8dW1y\",\n \"session_id\": \"3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/rum/journey/events?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 \"application_id\": \"app_3fK9mQ2xLp7VbN4cR8dW1y\",\n \"session_id\": \"3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"events": [
{
"time": 1780280412000,
"kind": "view",
"text": "/cart",
"duration_ms": 842,
"status": null,
"page": null
},
{
"time": 1780280430555,
"kind": "click",
"text": "Checkout",
"page": "/cart",
"duration_ms": null,
"status": null
},
{
"time": 1780280431200,
"kind": "failed_request",
"text": "POST /api/orders",
"status": 502,
"duration_ms": null,
"page": null
},
{
"time": 1780280441900,
"kind": "error",
"text": "TypeError: Cannot read properties of undefined (reading 'id')",
"duration_ms": null,
"status": null,
"page": null
}
],
"truncated": false
},
"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 session's key events
List the pages, clicks, failed requests, errors and crashes of one session, in time order.
POST
/
rum
/
journey
/
events
List a session's key events
curl --request POST \
--url 'https://api.flashcat.cloud/rum/journey/events?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"start_time": 1780272000000,
"end_time": 1780358400000,
"application_id": "app_3fK9mQ2xLp7VbN4cR8dW1y",
"session_id": "3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30"
}
'import requests
url = "https://api.flashcat.cloud/rum/journey/events?app_key="
payload = {
"start_time": 1780272000000,
"end_time": 1780358400000,
"application_id": "app_3fK9mQ2xLp7VbN4cR8dW1y",
"session_id": "3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30"
}
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,
application_id: 'app_3fK9mQ2xLp7VbN4cR8dW1y',
session_id: '3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30'
})
};
fetch('https://api.flashcat.cloud/rum/journey/events?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/events?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,
'application_id' => 'app_3fK9mQ2xLp7VbN4cR8dW1y',
'session_id' => '3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30'
]),
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/events?app_key="
payload := strings.NewReader("{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"application_id\": \"app_3fK9mQ2xLp7VbN4cR8dW1y\",\n \"session_id\": \"3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30\"\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/events?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"start_time\": 1780272000000,\n \"end_time\": 1780358400000,\n \"application_id\": \"app_3fK9mQ2xLp7VbN4cR8dW1y\",\n \"session_id\": \"3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/rum/journey/events?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 \"application_id\": \"app_3fK9mQ2xLp7VbN4cR8dW1y\",\n \"session_id\": \"3a1f8c2e-5b7d-4e9a-9c1f-2d6b8e4a7f30\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"events": [
{
"time": 1780280412000,
"kind": "view",
"text": "/cart",
"duration_ms": 842,
"status": null,
"page": null
},
{
"time": 1780280430555,
"kind": "click",
"text": "Checkout",
"page": "/cart",
"duration_ms": null,
"status": null
},
{
"time": 1780280431200,
"kind": "failed_request",
"text": "POST /api/orders",
"status": 502,
"duration_ms": null,
"page": null
},
{
"time": 1780280441900,
"kind": "error",
"text": "TypeError: Cannot read properties of undefined (reading 'id')",
"duration_ms": null,
"status": null,
"page": null
}
],
"truncated": false
},
"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; the window must not exceed 14 days and the session must have started inside it, otherwise the call returnsResourceNotFound.- A session id is only unique within its application, so
application_idis required; the caller needs read access to it and getsAccessDeniedotherwise. kindisview,click,failed_request,errororcrash.- A page’s
duration_msis its load by the session’s platform — largest contentful paint on the web, first render in mini-programs, cold start for a native app’s first page — and is null when unknown. - A failed request is a 5xx answer, or no answer at all, from the page’s own site;
textis the method and path, andstatus0 means no answer. - An error’s
textis its message cut to 200 characters. - At most 200 views, 200 clicks and 200 other events are returned;
truncatedis true when any of them was cut.
Authorizations
Body
application/json
List the key events of one session inside a time window.
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?