Get a Noise Threshold
Returns a specified noise threshold for a noise sensor.
Returns a specified noise threshold for a noise sensor.
Code:
await seam.noiseSensors.noiseThresholds.get({
noise_threshold_id: "8282891b-c4da-4239-8f01-56089d44b80d",
});Output:
{
"device_id": "736fc5bf-192d-4416-b879-66ff0195f2f7",
"ends_daily_at": "2025-06-19T12:38:44.000Z",
"name": "My Noise Sensor",
"noise_threshold_decibels": 50,
"noise_threshold_id": "8282891b-c4da-4239-8f01-56089d44b80d",
"noise_threshold_nrs": 40,
"starts_daily_at": "2025-06-20T18:29:57.000Z"
}Returns a specified noise threshold for a noise sensor.
Code:
curl --include --request POST "https://connect.getseam.com/noise_sensors/noise_thresholds/get" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"noise_threshold_id": "8282891b-c4da-4239-8f01-56089d44b80d"
}
EOFOutput:
{
"noise_threshold": {
"device_id": "736fc5bf-192d-4416-b879-66ff0195f2f7",
"ends_daily_at": "2025-06-19T12:38:44.000Z",
"name": "My Noise Sensor",
"noise_threshold_decibels": 50,
"noise_threshold_id": "8282891b-c4da-4239-8f01-56089d44b80d",
"noise_threshold_nrs": 40,
"starts_daily_at": "2025-06-20T18:29:57.000Z"
}
}Returns a specified noise threshold for a noise sensor.
Code:
seam.noise_sensors.noise_thresholds.get(
noise_threshold_id="8282891b-c4da-4239-8f01-56089d44b80d"
)Output:
NoiseThreshold(
device_id="736fc5bf-192d-4416-b879-66ff0195f2f7",
ends_daily_at="2025-06-19T12:38:44.000Z",
name="My Noise Sensor",
noise_threshold_decibels=50,
noise_threshold_id="8282891b-c4da-4239-8f01-56089d44b80d",
noise_threshold_nrs=40,
starts_daily_at="2025-06-20T18:29:57.000Z",
)Returns a specified noise threshold for a noise sensor.
Code:
seam.noise_sensors.noise_thresholds.get(noise_threshold_id: "8282891b-c4da-4239-8f01-56089d44b80d")Output:
{
"device_id" => "736fc5bf-192d-4416-b879-66ff0195f2f7",
"ends_daily_at" => "2025-06-19T12:38:44.000Z",
"name" => "My Noise Sensor",
"noise_threshold_decibels" => 50,
"noise_threshold_id" => "8282891b-c4da-4239-8f01-56089d44b80d",
"noise_threshold_nrs" => 40,
"starts_daily_at" => "2025-06-20T18:29:57.000Z",
}Returns a specified noise threshold for a noise sensor.
Code:
$seam->noise_sensors->noise_thresholds->get(
noise_threshold_id: "8282891b-c4da-4239-8f01-56089d44b80d"
);Output:
[
"device_id" => "736fc5bf-192d-4416-b879-66ff0195f2f7",
"ends_daily_at" => "2025-06-19T12:38:44.000Z",
"name" => "My Noise Sensor",
"noise_threshold_decibels" => 50,
"noise_threshold_id" => "8282891b-c4da-4239-8f01-56089d44b80d",
"noise_threshold_nrs" => 40,
"starts_daily_at" => "2025-06-20T18:29:57.000Z",
];Returns a specified noise threshold for a noise sensor.
Code:
seam noise-sensors noise-thresholds get --noise_threshold_id "8282891b-c4da-4239-8f01-56089d44b80d"Output:
{
"device_id": "736fc5bf-192d-4416-b879-66ff0195f2f7",
"ends_daily_at": "2025-06-19T12:38:44.000Z",
"name": "My Noise Sensor",
"noise_threshold_decibels": 50,
"noise_threshold_id": "8282891b-c4da-4239-8f01-56089d44b80d",
"noise_threshold_nrs": 40,
"starts_daily_at": "2025-06-20T18:29:57.000Z"
}Request Parameters
noise_threshold_id String (Required)
ID of the noise threshold that you want to get.
Response
{
"device_id": "69b9e908-039b-413a-904e-5edee653ca27",
"ends_daily_at": "09:00:00[America/Los_Angeles]",
"name": "My Noise Threshold",
"noise_threshold_decibels": 21,
"noise_threshold_id": "f8cef69d-625f-464c-aed4-287c06e0d7fe",
"noise_threshold_nrs": 5,
"starts_daily_at": "07:00:00[America/Los_Angeles]"
}Last updated
Was this helpful?

