List events
const url = 'https://safe-api.safetyradar.com/v2/events?limit=50&page=1&dir=asc&updatedAfter=2026-09-01T00%3A00%3A00Z&updatedBefore=2026-09-30T00%3A00%3A00Z';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://safe-api.safetyradar.com/v2/events?limit=50&page=1&dir=asc&updatedAfter=2026-09-01T00%3A00%3A00Z&updatedBefore=2026-09-30T00%3A00%3A00Z' \ --header 'Authorization: Bearer <token>'Get a paginated list of events with optional filtering.
Poll for changes with updatedAfter / updatedBefore — ISO 8601 instants with Z or a timezone offset, exclusive on both ends, the same on every v2 endpoint that takes them. When either is present the default sort changes to updatedAt ascending, so the updatedAt of the last record on a page can be passed back as updatedAfter. A write can become visible with an updatedAt a little older than the cursor you already hold, so poll with an overlap: pass updatedAfter = the last updatedAt you saw minus 5 minutes, and de-duplicate on id.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Results per page (default: 50, max: 1000). A larger value is refused with a 400 validation_error; it is not clamped.
Example
50Results per page (default: 50, max: 1000). A larger value is refused with a 400 validation_error; it is not clamped.
Page number, starting at 1 (default: 1)
Example
1Page number, starting at 1 (default: 1)
object
Only events updated strictly after this instant (exclusive). ISO 8601 with Z or a timezone offset (URL-encode + as %2B), normalized to UTC. Page through with page until hasNext is false, then pass the updatedAt of the last record back as the next updatedAfter. Treat the poll as at-least-once and de-duplicate on id.
Example
2026-09-01T00:00:00ZOnly events updated strictly after this instant (exclusive). ISO 8601 with Z or a timezone offset (URL-encode + as %2B), normalized to UTC. Page through with page until hasNext is false, then pass the updatedAt of the last record back as the next updatedAfter. Treat the poll as at-least-once and de-duplicate on id.
Only events updated strictly before this instant (exclusive). ISO 8601 with Z or a timezone offset (URL-encode + as %2B), normalized to UTC.
Example
2026-09-30T00:00:00ZOnly events updated strictly before this instant (exclusive). ISO 8601 with Z or a timezone offset (URL-encode + as %2B), normalized to UTC.
Responses
Section titled “Responses”Paginated list of events
object
object
Event date and time in UTC. Accepts a full ISO 8601 timestamp (e.g. “2026-05-19T14:23:00Z”) or a date-only string (“2026-05-19”); date-only inputs are anchored at 08:00 UTC for backwards compatibility.
Deprecated: use assignedToUserId. Carries the ASSIGNEE’s id (same value).
object
object
object
object
Full name of the user the event is assigned to.
Deprecated: use assigneeName. Before SAFE-1903 the owner was the assignee; this field still carries the ASSIGNEE’s name.
object
object
Example
{ "data": [ { "eventDate": "2026-05-19T14:23:00.000Z", "location": { "status": "active", "type": "equipment" } } ]}Invalid request: a parameter or the body failed validation (validation_error), or the body is not valid JSON (invalid_json)
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}Unauthorized
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}Rate limit exceeded (rate_limit_exceeded)
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}Unexpected server error (internal_error)
object
Machine-readable error code
Human-readable error message
Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).
object
Example
{ "code": "validation_error", "message": "Request validation failed"}
