# Events

A Curb Event is a detailed record of activities that occur within the specific geographic boundaries defined by a Curb Zone or Curb Area. This event captures various types of actions or incidents related to curbside usage, such as parking, loading, unloading, or enforcement activities. Each Curb Event is associated with a particular location and time, providing valuable insights into how curb spaces are utilized. The data from these events can be used for real-time monitoring, historical analysis, and operational decision-making, helping cities manage and optimize curbside resources effectively.

## Query Event

> Access Events data in the Curb Data Specification format. Requires the \`start\_time\` and \`end\_time\` parameters. The curb place parameters (\`curb\_area\_id\`, \`curb\_zone\_id\`, \`curb\_space\_id\`) are optional.<br>

```json
{"openapi":"3.1.0","info":{"title":"CurbIQ API","version":"1.0.0"},"servers":[{"url":"https://v2.curbiq-curb-api.io","description":"CurbIQ's Curb API (v1)"}],"paths":{"/events/events":{"get":{"operationId":"getEvents","summary":"Query Event","description":"Access Events data in the Curb Data Specification format. Requires the `start_time` and `end_time` parameters. The curb place parameters (`curb_area_id`, `curb_zone_id`, `curb_space_id`) are optional.\n","parameters":[{"name":"curbiq_token","in":"query","required":true,"schema":{"type":"string"}},{"name":"curb_area_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"curb_zone_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"curb_space_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"start_time","in":"query","schema":{"type":"integer","format":"int64"}},{"name":"end_time","in":"query","schema":{"type":"integer","format":"int64"}},{"name":"response_size","in":"query","schema":{"type":"integer"}},{"name":"page_num","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"A successful response containing Events.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"time_zone":{"type":"string"},"last_updated":{"type":"integer"},"currency":{"type":"string"},"author":{"type":"string"},"license_url":{"type":"string","nullable":true},"ccds_attributes":{"type":"object","properties":{"type":{"type":"string"},"request_type":{"type":"string"},"city_id":{"type":"string","format":"uuid"},"city_name":{"type":"string"},"query_parameters":{"type":"object","properties":{"curb_zone_id":{"type":"string","format":"uuid"},"curbiq_token":{"type":"string","format":"uuid"},"start_time":{"type":"integer","format":"int64"},"end_time":{"type":"integer","format":"int64"},"page_num":{"type":"integer"},"response_size":{"type":"integer"}}}}},"pages":{"type":"object","properties":{"total":{"type":"integer"},"current":{"type":"integer"}}},"data":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"event_id":{"type":"string","format":"uuid"},"event_type":{"type":"string"},"event_location":{"type":"object","properties":{"type":{"type":"string"},"properties":{"type":"object","properties":{"timestamp":{"type":"integer"}}},"geometry":{"type":"object","properties":{"type":{"type":"string"},"coordinates":{"type":"array","items":{"type":"number"}}}}}},"event_time":{"type":"integer"},"event_publication_time":{"type":"integer"},"event_session_id":{"type":"string","format":"uuid"},"curb_zone_id":{"type":"string","format":"uuid"},"curb_area_ids":{"type":"string","format":"uuid"},"data_source_type":{"type":"string"},"data_source_operator_id":{"type":"string","format":"uuid"},"data_source_operator_name":{"type":"string"},"data_source_device_id":{"type":"string","format":"uuid"},"data_source_device_name":{"type":"string"},"data_source_manufacturer":{"type":"string","nullable":true},"data_source_model":{"type":"string","nullable":true},"sensor_status_is_online":{"type":"boolean"}}}}}},"links":{"type":"object","properties":{"first":{"type":"string","format":"uri"},"last":{"type":"string","format":"uri"},"prev":{"type":"string","format":"uri"},"next":{"type":"string","format":"uri"}}}}}}}},"400":{"description":"Bad request. Error in the query parameters such as an invalid token."}},"tags":["events"]}}}}
```

**Note:** Custom response limits have been placed to manage query operations/system loads and response time.

* If a curb\_zone\_id is not specified: end\_time - start\_time should not exceed one day
* If a curb\_zone\_id is specified: end\_time - start\_time should not exceed three months


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://curbiq.gitbook.io/curbiq-api-documentation/events/events_events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
