Skip to content

Get a module record by external id

GET
/modules/{slug}/records/{externalId}
curl --request GET \
--url https://safe-api.safetyradar.com/v2/modules/jsa/records/JSA-00042 \
--header 'Authorization: Bearer <token>' \
--header 'x-team: my-team-slug'

Get one record of a custom module by its external id. A removed record is returned too, with deletedAt set. Each spine pick carries its uuid, display name and external id, and every user / asset field in fields is read back as { id, name, externalId }. GET /v2/modules/{slug}/fields describes fields.

slug
required

The custom module’s slug, unique within your organization. Core modules (action_item) have their own routes.

string
>= 1 characters
Example
jsa

The custom module’s slug, unique within your organization. Core modules (action_item) have their own routes.

externalId
required

The record’s external id (URL-encoded).

string
>= 1 characters
Example
JSA-00042

The record’s external id (URL-encoded).

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.

The record

Media typeapplication/json
object
data
required
object
id
required
string format: uuid
externalId
required

The record’s own correlation id, unique per module. The upsert key.

string
title
required
string
description
required
string
nullable
recordDate
required

The record’s calendar date as an ISO instant. A date-only value is stored at 08:00 UTC: read its date in UTC.

string
nullable
statusId
required
string format: uuid
nullable
statusName
required
string
nullable
statusGroup
required
string
nullable
Allowed values: new in_progress complete on_hold cancelled
statusExternalId
required
string
nullable
ownerId
required
string format: uuid
nullable
ownerName
required
string
nullable
ownerExternalId
required
string
nullable
assignedToUserId
required
string format: uuid
nullable
assignedToUserName
required
string
nullable
assignedToUserExternalId
required
string
nullable
locationId
required
string format: uuid
nullable
locationName
required
string
nullable
locationExternalId
required
string
nullable
fields
required

The organization’s custom fields for this module, keyed by definition key. Always present; a defined key this record holds no value for is absent rather than null. A user (person) or asset (location / equipment) field is read back as { id, name, externalId } in place of its uuid; every other type is its plain value. Discover the keys, types and filter operators at GET /v2/modules/{slug}/fields.

object
key
additional properties
any
createdAt
required
string
updatedAt
required
string
deletedAt
required

Set when the record was removed. A removed record is listed only with includeDeleted=true; sending its external id in a bulk upsert restores it.

string
nullable
Example
{
"data": {
"externalId": "JSA-00042",
"statusGroup": "new",
"fields": {
"task_steps": "Rig the load; clear the swing radius",
"hazard_level": "high",
"supervisor": {
"id": "5c8d32f1-bf63-432e-a087-9ceeaf86a3b6",
"name": "Jordan Lee",
"externalId": "EMP-0123"
}
}
}
}

Invalid request: a parameter or the body failed validation (validation_error), or the body is not valid JSON (invalid_json)

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

Missing or invalid API key (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"
}

No such custom module, or no record with this external id in it

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