Get Movement

The get-movement API returns metadata about where and for how long users spent time in a space.


Request Format

interface GetMovementRequest {
  userId: string;
  wsid: string;      // The workspace to get movement
  startTime: number; // epoch milliseconds
  endTime: number;   // epoch milliseconds

Response Format

interface Movement {
  userId: string;
  roomId: string;
  enterTime: number; // epoch milliseconds
  duration: number;  // milliseconds

interface GetMovementResponse {
  movement: Movement[];