Skip to main content
POST
trip-events

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Trip event payload

_id
string

Unique identifier for the trip

email
string

Email address of the field worker

organizationId
string

Organization ID associated with the trip

taskId
string

Associated task ID (if applicable)

createdBy
string

Email of the person who created/initiated the trip

startTime
string

Trip start time

lat
number

Current latitude

lon
number

Current longitude

distance
number

Distance traveled

duration
integer

Trip duration

eventName
string

Event type (e.g., otw for on the way)

isLatest
boolean

Whether this is the latest trip log entry

Response

200

Return 200 status to indicate that the data was received successfully