Skip to content

List action items

GET
/action-items
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.

page

Page number, starting at 1 (default: 1)

integer
default: 1
Example
1

Page number, starting at 1 (default: 1)

limit

Results per page (default: 20, max: 100). A larger value is refused with a 400 validation_error; it is not clamped.

integer
default: 20 <= 100
Example
20

Results per page (default: 20, max: 100). A larger value is refused with a 400 validation_error; it is not clamped.

status
string
Allowed values: open in_progress complete
assignedToUserId
string format: uuid
entityType
string
entityId
string format: uuid
externalId

The action item’s own external ID

string

The action item’s own external ID

eventExternalId

Event external ID; scopes results to that event

string

Event external ID; scopes results to that event

updatedAfter

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.

string format: date-time
Example
2026-09-01T00:00:00Z

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.

updatedBefore

Only action items updated strictly before this instant (exclusive). ISO 8601 with Z or a timezone offset (URL-encode + as %2B), normalized to UTC.

string format: date-time
Example
2026-09-30T00:00:00Z

Only action items updated strictly before this instant (exclusive). ISO 8601 with Z or a timezone offset (URL-encode + as %2B), normalized to UTC.

fieldFilters

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}]

string
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}]

fieldSort

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.

string
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.

x-team

Deprecated — accepted but ignored; the v2 API is org-scoped.

string
Example
my-team-slug

Deprecated — accepted but ignored; the v2 API is org-scoped.

Paginated list of action items

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
entityType
required
string
nullable
entityId
required
string format: uuid
nullable
formSubmissionId
required
string format: uuid
nullable
sourceSectionNodeId
required
string
nullable
title
required
string
description
required
string
nullable
assignedToUserId
required
string format: uuid
nullable
assignedToUserName
string
nullable
assignedToUserExternalId
required
string
nullable
assignedToDepartmentId
required
string format: uuid
nullable
assignedToRoleSlug
required
string
nullable
dueDate
required
string
nullable
priority
required
string
Allowed values: low medium high urgent
statusId
required
string format: uuid
nullable
statusName
required
string
nullable
statusExternalId
required
string
nullable
statusGroup
required
string
nullable
Allowed values: new in_progress complete on_hold cancelled
status
required
string
Allowed values: open in_progress complete
assetId
required
string format: uuid
nullable
assetName
required
string
nullable
assetExternalId
required
string
nullable
externalId
required
string
nullable
responseNotes
required
string
nullable
attachments
required
Array<object>
nullable
object
key
additional properties
nullable
completedAt
required
string
nullable
completedById
required
string format: uuid
nullable
completedByName
required
string
nullable
completedByExternalId
required
string
nullable
createdById
required
string format: uuid
nullable
createdByExternalId
required
string
nullable
fields
required

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
key
additional properties
any
metadata
required

Verbatim, unvalidated. Use fields — typed, admin-defined, validated. See GET /v2/modules/action_item/fields.

object
key
additional properties
nullable
organizationId
required
string format: uuid
teamId
required
string format: uuid
nullable
createdAt
required
string
updatedAt
required
string
meta
required
object
pagination
required
object
page
required
number
limit
required
number
total
required
number
totalPages
required
number
hasNext
required
boolean
hasPrev
required
boolean
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

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Unauthorized

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Referenced event not found

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Rate limit exceeded (rate_limit_exceeded)

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Unexpected server error (internal_error)

Media typeapplication/json
object
code
required

Machine-readable error code

string
message
required

Human-readable error message

string
details

Additional error details. For validation_error: issues, a list of { location, path, message } (location is query, param, header or json).

object
key
additional properties
nullable
Example
{
"code": "validation_error",
"message": "Request validation failed"
}

Version bd999fd · Released November 23, 2026