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
Arguments
Query String Parameters
- start
Longrequired The timestamp where the tasks are happened later - end
Longrequired 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
Enumoptional- CSV (default)
- JSON
- JSONL
Returns
Returns list of task objects for given parameters.
| Field | Type | Description |
|---|---|---|
| id | UUID | Unique identifier for task |
| code | String | Task code |
| status | String | Status of the task |
| name | String | Name of the task |
| solution | String | Solution of the task |
| assigneeId | UUID | The id of the person to whom the task is assigned |
| assigneeEmail | String | The email address of the person to whom the task is assigned |
| dueDate | String | Last date of the task to be completed |
| cameraIds | List[UUID] | Camera ids associated with the task |
| facilityId | UUID | The facility id associated with the task |
| priority | String | Priority of the task |
| isArchived | Boolean | Whether the task is archived or not |
| startedAt | String | Task start date |
| completedAt | String | Task end date |
| createdAt | String | Task creation date |
| createdBy | UUID | ID of the person who created the task |
| createdByEmail | String | The email address of the person who created the task |
| updatedAt | String | Task's last update date |
| updatedBy | UUID | ID of the person who last updated the task |
| updatedByEmail | String | The email address of the person who last updated the task |
| origin | String | The origin item that task is created from, alert, incident, etc. |
| taskURL | String | Task's connection url |
| comments | String | Comments, sender and comment date info |
- Csv
- Json
- Json Lines
id,code,status,name,solution,assigneeId,assigneeEmail,dueDate,facilityId,priority,isArchived,startedAt,completedAt,createdAt,createdBy,createdByEmail,updatedAt,updatedBy,updatedByEmail,origin,taskURL,comments
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,[email protected],,2024-05-29T09:50:19.428481Z,[email protected],,,https://dashboard.intenseye.com/ehs/taskv2/task/0a97f8fb-6db3-4c26-b29c-26ebce1da16e,2023-01-31T08:58:15Z - [email protected] - Final solution has been added to attachments.
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,[email protected],,2024-09-17T11:29:44.736261Z,[email protected],,,https://dashboard.intenseye.com/ehs/taskv2/task/aab45e7e-15c8-4bae-aa37-e2ef40fdbe23,
[
{
"id": "0a97f8fb-6db3-4c26-b29c-26ebce1da16e",
"code": "TSK20691",
"status": "TODO",
"name": "Hard hat - Have a TBT/training with the personnel working in the area",
"solution": "task-solution.training-personnel",
"assigneeId": "eebb9915-e205-4a73-a9bd-375de6bd1bbd",
"assigneeEmail": null,
"dueDate": "2024-06-06T00:00Z",
"cameraIds": [],
"facilityId": "7200aae3-90d8-480b-a4e9-8fb3eb3af9a6",
"priority": "MEDIUM",
"isArchived": false,
"startedAt": "2024-04-02T08:59:01.368138Z",
"completedAt": null,
"createdAt": "2024-04-02T08:59:01.368138Z",
"createdBy": "[email protected]",
"createdByEmail": null,
"updatedAt": "2024-05-29T09:50:19.428481Z",
"updatedBy": "[email protected]",
"updatedByEmail": null,
"origin": null,
"taskURL": "https://dashboard.intenseye.com/ehs/taskv2/task/0a97f8fb-6db3-4c26-b29c-26ebce1da16e",
"comments": "2023-01-31T08:58:15Z - [email protected] - Final solution has been added to attachments."
},
{
"id": "aab45e7e-15c8-4bae-aa37-e2ef40fdbe23",
"code": "TSK20693",
"status": "TODO",
"name": "Hard hat - Have a TBT/training with the personnel working in the area",
"solution": "task-solution.training-personnel",
"assigneeId": "719920ee-8796-4c31-888f-5b1f8efa8f11",
"assigneeEmail": null,
"dueDate": "2024-09-17T00:00Z",
"cameraIds": [],
"facilityId": "74bda774-6067-4430-9cd1-95431697ce45",
"priority": "MEDIUM",
"isArchived": false,
"startedAt": "2024-09-17T11:29:44.736261Z",
"completedAt": null,
"createdAt": "2024-09-17T11:29:44.736261Z",
"createdBy": "[email protected]",
"createdByEmail": null,
"updatedAt": "2024-09-17T11:29:44.736261Z",
"updatedBy": "[email protected]",
"updatedByEmail": null,
"origin": null,
"taskURL": "https://dashboard.intenseye.com/ehs/taskv2/task/aab45e7e-15c8-4bae-aa37-e2ef40fdbe23",
"comments": null
}
]
{"id":"0a97f8fb-6db3-4c26-b29c-26ebce1da16e","code":"TSK20691","status":"TODO","name":"Hard hat - Have a TBT/training with the personnel working in the area","solution":"task-solution.training-personnel","assigneeId":"eebb9915-e205-4a73-a9bd-375de6bd1bbd","assigneeEmail":null,"dueDate":"2024-06-06T00:00Z","cameraIds":[],"facilityId":"7200aae3-90d8-480b-a4e9-8fb3eb3af9a6","priority":"MEDIUM","isArchived":false,"startedAt":"2024-04-02T08:59:01.368138Z","completedAt":null,"createdAt":"2024-04-02T08:59:01.368138Z","createdBy":"[email protected]","createdByEmail":null,"updatedAt":"2024-05-29T09:50:19.428481Z","updatedBy":"[email protected]","updatedByEmail":null,"origin":null,"taskURL":"https://dashboard.intenseye.com/ehs/taskv2/task/0a97f8fb-6db3-4c26-b29c-26ebce1da16e","comments": "2023-01-31T08:58:15Z - [email protected] - Final solution has been added to attachments."}
{"id":"aab45e7e-15c8-4bae-aa37-e2ef40fdbe23","code":"TSK20693","status":"TODO","name":"Hard hat - Have a TBT/training with the personnel working in the area","solution":"task-solution.training-personnel","assigneeId":"719920ee-8796-4c31-888f-5b1f8efa8f11","assigneeEmail":null,"dueDate":"2024-09-17T00:00Z","cameraIds":[],"facilityId":"74bda774-6067-4430-9cd1-95431697ce45","priority":"MEDIUM","isArchived":false,"startedAt":"2024-09-17T11:29:44.736261Z","completedAt":null,"createdAt":"2024-09-17T11:29:44.736261Z","createdBy":"[email protected]","createdByEmail":null,"updatedAt":"2024-09-17T11:29:44.736261Z","updatedBy":"[email protected]","updatedByEmail":null,"origin":null,"taskURL":"https://dashboard.intenseye.com/ehs/taskv2/task/aab45e7e-15c8-4bae-aa37-e2ef40fdbe23","comments": null}