Lone Worker

Retrieves the events that occurred during a job, such as when it started, when the worker checked in, and when a panic was raised or resolved. Events are returned oldest first, ordered by created_at. Position updates, which together form the job's location trail, can be included as well. Consecutive position updates recorded within 50 meters of each other are combined into a single event. Position updates carry no address of their own; the first and last events of a job's trail are given the job's start address and last known address. Requires the "Lone Worker: Manage" permission.

get/loneworker/v1/jobs:GetJobEvents

Request

  • Base URL
    https://api.mitti.com
  • Auth
    HTTP bearer

Query parameters

idstring

The ID of the job. If omitted, events for every job in the organization are returned, position updates cannot be included, and the page size is required.

include_position_updatesboolean

Whether to include position updates in the response, forming the job's location trail. Requires the ID of the job.

page_sizeinteger

The maximum number of results to return per page. Must be between 1 and 100 when provided. If omitted, up to 5000 events are returned in a single page.

page_tokenstring

The token for the page of results to retrieve.

Response

A successful response.

next_page_tokenstring

The token for the next page of results.

Changes