List action items
const url = 'https://safe-api.safetyradar.com/v2/action-items?page=1&limit=20&status=open&updatedAfter=2026-09-01T00%3A00%3A00Z&updatedBefore=2026-09-30T00%3A00%3A00Z&fieldFilters=%5B%7B%22key%22%3A%22crew%22%2C%22op%22%3A%22eq%22%2C%22value%22%3A%22A-shift%22%7D%5D&fieldSort=%7B%22key%22%3A%22crew%22%2C%22direction%22%3A%22asc%22%7D';const options = { method: 'GET', headers: {'x-team': 'my-team-slug', 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/action-items?page=1&limit=20&status=open&updatedAfter=2026-09-01T00%3A00%3A00Z&updatedBefore=2026-09-30T00%3A00%3A00Z&fieldFilters=%5B%7B%22key%22%3A%22crew%22%2C%22op%22%3A%22eq%22%2C%22value%22%3A%22A-shift%22%7D%5D&fieldSort=%7B%22key%22%3A%22crew%22%2C%22direction%22%3A%22asc%22%7D' \ --header 'Authorization: Bearer <token>' \ --header 'x-team: my-team-slug'Get a paginated list of action items. Filter by status, assignedToUserId, entityType/entityId, externalId (the action item’s own correlation ID) or eventExternalId (scopes results to that event). A filter that matches nothing returns an empty page.
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 from createdAt descending to updatedAt ascending, so the updatedAt of the last record on a page can be passed back as updatedAfter to fetch only what has changed since. 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. Treat the poll as at-least-once.
Filter and sort on your organization’s custom fields with fieldFilters and fieldSort — JSON in the query string, ANDed with the filters above. A key your organization has not defined, or an operator its type does not accept, is a 400 rather than an ignored filter. Call GET /v2/modules/action_item/fields for the keys, types and the operators each one accepts.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page number, starting at 1 (default: 1)
Example
1Page number, starting at 1 (default: 1)
Results per page (default: 20, max: 100). A larger value is refused with a 400 validation_error; it is not clamped.
Example
20Results per page (default: 20, max: 100). A larger value is refused with a 400 validation_error; it is not clamped.
The action item’s own external ID
The action item’s own external ID
Event external ID; scopes results to that event
Event external ID; scopes results to that event
Only action items 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 action items 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 action items 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 action items updated strictly before this instant (exclusive). ISO 8601 with Z or a timezone offset (URL-encode + as %2B), normalized to UTC.
JSON array of custom-field filters, ANDed together. Each entry is {“key”,“op”,“value”}; isNull / isNotNull take no value and in takes an array. The operators a field accepts are returned as ops by GET /v2/modules/action_item/fields. Example: [{“key”:“crew”,“op”:“in”,“value”:[“A”,“B”]},{“key”:“corrective_cost”,“op”:“gte”,“value”:1000}]
Example
[{"key":"crew","op":"eq","value":"A-shift"}]JSON array of custom-field filters, ANDed together. Each entry is {“key”,“op”,“value”}; isNull / isNotNull take no value and in takes an array. The operators a field accepts are returned as ops by GET /v2/modules/action_item/fields. Example: [{“key”:“crew”,“op”:“in”,“value”:[“A”,“B”]},{“key”:“corrective_cost”,“op”:“gte”,“value”:1000}]
JSON custom-field sort: {“key”,“direction”} with direction “asc” or “desc” (default “asc”). Records holding no value for the key sort last on “asc” and first on “desc” (Postgres NULL ordering). Replaces the default createdAt sort.
Example
{"key":"crew","direction":"asc"}JSON custom-field sort: {“key”,“direction”} with direction “asc” or “desc” (default “asc”). Records holding no value for the key sort last on “asc” and first on “desc” (Postgres NULL ordering). Replaces the default createdAt sort.
Header Parameters
Section titled “Header Parameters”Deprecated — accepted but ignored; the v2 API is org-scoped.
Example
my-team-slugDeprecated — accepted but ignored; the v2 API is org-scoped.
Responses
Section titled “Responses”Paginated list of action items
object
object
object
The organization’s custom module fields, keyed by definition key. Always present; {} when the organization has configured none, and a defined key this item holds no value for is absent rather than null. A user (person) or asset (location / equipment) field is read back as an ActionItemFieldReference — { id, name, externalId } — in place of its uuid, so you can map it to your own records without a lookup; every other type is its plain value. Discover the keys, types and filter operators at GET /v2/modules/action_item/fields.
object
Verbatim, unvalidated. Use fields — typed, admin-defined, validated. See GET /v2/modules/action_item/fields.
object
object
object
Example
{ "data": [ { "priority": "low", "statusGroup": "new", "status": "open", "fields": { "crew": "A-shift", "corrective_cost": 1250, "supervisor": { "id": "5c8d32f1-bf63-432e-a087-9ceeaf86a3b6", "name": "Jordan Lee", "externalId": "EMP-0123" } } } ]}Malformed fieldFilters / fieldSort, or a key or operator the organization’s definitions refuse
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"}Referenced event not found
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"}
