---
title: "Get worksite history"
method: GET
path: "/worksites/{id}/history"
tags: ["Worksites"]
---

# Get worksite history

`GET /worksites/{id}/history`

Get the complete event history for a worksite and its work types

## Response `200`

Event history retrieved successfully

- EventLogs[]
  - `id` integer
  - `event_key` string, nullable — References event_events.event_key. Entered every time a system event occurs. If this table gets large, it may need to be moved to a NOSQL db at some point.
  - `attr` string
  - `created_at` string, date-time — Timestamp when the event was logged.
  - `created_by` integer, nullable — user.id of the user who created the event. This is usually the actor_id unless an administrator manually creates events.
  - `actor_id` integer, nullable — The ID of the actor, if the actor is a database object. This is usually, but not necessarily, a reference to the user_id. The table reference is contained in actor_model. If the actor is not a database object (e.g., an external resource like a client or caller), then use actor_external_id and actor_external_resource to identify the actor.
  - `actor_blurred_location` string, nullable — A randomized version of actor_location, suitable for use on public maps.
  - `actor_location_name` string, nullable — A plain-text name from location_locations of the polygon in which the actor_location exists.
  - `patient_blurred_location` string, nullable — A randomized version of patient_location, suitable for use on public maps.
  - `patient_location_name` string, nullable — A plain-text name from location_locations of the polygon in which the patient_location exists.
  - `recipient_blurred_location` string, nullable — A randomized version of recipient_location, suitable for use on public maps.
  - `recipient_location_name` string, nullable — A plain-text name from location_locations of the polygon in which the recipient_location exists.
  - `name_t` string
  - `past_tense_t` string
  - `present_progressive_t` string
  - `map_destination` string

## Other responses

- `404` — Worksite not found

---

[API](https://skmtc.dev/crisiscleanup/apis/crisiscleanup-api.md) · [All operations](https://skmtc.dev/crisiscleanup/apis/crisiscleanup-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/crisiscleanup/crisiscleanup-api/revisions/3fa73d4b2895/schema)
