Skip to main content

Tasks

EHS Tasks represent the actionable components of the Intenseye platform, capturing follow-ups, investigations, and other safety-related activities derived from observations and alerts. The EHS Task API allows querying these tasks based on various parameters such as, status, assignee, and associated facility or camera. Each API call requires a start and end time defined as Unix timestamps, and it returns tasks created or updated within the specified time range.

Unlike alerts, EHS tasks are not generated as frequently, so there is typically no need for continuous or frequent API polling. Wider time windows can be used without performance concerns, allowing for more flexible query intervals according to your integration needs

Export tasks based on time interval

GET/tasks/export

Arguments

Query String Parameters
  • start Long required The timestamp where the tasks are happened later
  • end Long required The timestamp where the tasks are happened earlier
  • status List[Enum] optional
    • TODO
    • INPROGRESS
    • VERIFICATION
    • COMPLETED
    • SUCCESS
  • assigneeEmails List[String] optional
  • priority List[Enum] optional
    • LOW
    • MEDIUM
    • HIGH
    • CRITICAL
  • origin List[Enum] optional
    • ALERT
    • INSPECTION
    • INCIDENT
    • AUDIT
    • CHIEF
    • LEADING_INDICATORS
  • format Enum optional
    • CSV (default)
    • JSON
    • JSONL

Returns

Returns list of task objects for given parameters.

FieldTypeDescription
idUUIDUnique identifier for task
codeStringTask code
statusStringStatus of the task
nameStringName of the task
solutionStringSolution of the task
assigneeIdUUIDThe id of the person to whom the task is assigned
assigneeEmailStringThe email address of the person to whom the task is assigned
dueDateStringLast date of the task to be completed
cameraIdsList[UUID]Camera ids associated with the task
facilityIdUUIDThe facility id associated with the task
priorityStringPriority of the task
isArchivedBooleanWhether the task is archived or not
startedAtStringTask start date
completedAtStringTask end date
createdAtStringTask creation date
createdByUUIDID of the person who created the task
createdByEmailStringThe email address of the person who created the task
updatedAtStringTask's last update date
updatedByUUIDID of the person who last updated the task
updatedByEmailStringThe email address of the person who last updated the task
originStringThe origin item that task is created from, alert, incident, etc.
taskURLStringTask's connection url
    id,code,status,name,solution,assigneeId,assigneeEmail,dueDate,cameraIds,facilityId,priority,isArchived,startedAt,completedAt,createdAt,createdBy,createdByEmail,updatedAt,updatedBy,updatedByEmail,origin,taskURL
0a97f8fb-6db3-4c26-b29c-26ebce1da16e,TSK20691,TODO,Hard hat - Have a TBT/training with the personnel working in the area,task-solution.training-personnel,eebb9915-e205-4a73-a9bd-375de6bd1bbd,,2024-06-06T00:00Z,,7200aae3-90d8-480b-a4e9-8fb3eb3af9a6,MEDIUM,false,2024-04-02T08:59:01.368138Z,,2024-04-02T08:59:01.368138Z,3c13b5b3-9d0a-4c66-aa50-07b2c3221b06,,2024-05-29T09:50:19.428481Z,eebb9915-e205-4a73-a9bd-375de6bd1bbd,,,https://dashboard.intenseye.com/ehs/taskv2/task/0a97f8fb-6db3-4c26-b29c-26ebce1da16e
aab45e7e-15c8-4bae-aa37-e2ef40fdbe23,TSK20693,TODO,Hard hat - Have a TBT/training with the personnel working in the area,task-solution.training-personnel,719920ee-8796-4c31-888f-5b1f8efa8f11,,2024-09-17T00:00Z,,74bda774-6067-4430-9cd1-95431697ce45,MEDIUM,false,2024-09-17T11:29:44.736261Z,,2024-09-17T11:29:44.736261Z,719920ee-8796-4c31-888f-5b1f8efa8f11,,2024-09-17T11:29:44.736261Z,719920ee-8796-4c31-888f-5b1f8efa8f11,,,https://dashboard.intenseye.com/ehs/taskv2/task/aab45e7e-15c8-4bae-aa37-e2ef40fdbe23
---