Skip to main content
POST
Query a user's page flow

Restrictions

Usage

  • start_time and end_time are Unix epoch milliseconds and both required; a window wider than 14 days returns InvalidParameter.
  • The flow follows the person’s uses, not sessions: their views in every readable application are one use until nothing is on screen for longer than 15 minutes.
  • Pages are named <application_id>:<path group>.
  • depth is 2 to 5 distinct pages and defaults to 3; direction=before requires start because a use has nothing before its entry.
  • Nothing is sampled for one person: sample_rate is always 1 and the counts are exact; sessions counts the person’s uses that reached the start.
  • With direction=after an empty to means the person left the site; with before it means the use began there.

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

Follow one user's pages from a start page, or from their entry, in one direction.

start_time
integer<int64>
required

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

Example:

1780272000000

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

usr_id
string
required

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

Maximum string length: 255
direction
enum<string>
required

Direction along the user's use: after follows the pages viewed after the start, before the pages viewed before it.

Available options:
after,
before
start
string

Page path group to follow, named <application_id>:<path group>. Omit to follow the user's entry.

Maximum string length: 1024
depth
integer
default:3

How many distinct pages to follow, 2-5; defaults to 3 when omitted.

Required range: 2 <= x <= 5

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

How sessions moved around a page, as links for a flow chart.