Get a module record by external id
const url = 'https://safe-api.safetyradar.com/v2/modules/jsa/records/JSA-00042';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The custom module’s slug, unique within your organization. Core modules (action_item) have their own routes.
Example
jsaThe custom module’s slug, unique within your organization. Core modules (action_item) have their own routes.
The record’s external id (URL-encoded).
Example
JSA-00042The record’s external id (URL-encoded).
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”The record
object
object
The record’s own correlation id, unique per module. The upsert key.
The record’s calendar date as an ISO instant. A date-only value is stored at 08:00 UTC: read its date in UTC.
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
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.
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)
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"}Missing or invalid API key (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"}No such custom module, or no record with this external id in it
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"}
