---
title: "Get the Sensor by id."
method: GET
path: "/sensors/{sensorId}"
tags: ["Sensors"]
---

# Get the Sensor by id.

`GET /sensors/{sensorId}`

Get the Sensor by id.

## Response `200`

The Sensor.

- SensorJson — unresolved $ref

## Other responses

- `400` — The request was malformed.
- `404` — The Resource could not be found.
- `5XX` — An internal server error occurred.

## Changes

- **2021-12-14** `41dac4f34d9e` — 2 info
  - api tag `Sensors` added
  - api tag `sensors` removed
- **2021-12-08** `6b395925cb6a` — 1 info
  - added the media type `text/yaml` for the response with the status `200`
- **2021-12-07** `9e60f373a1f0` — 1 breaking, 4 warning, 2 info
  - removed the media type `text/yaml` for the response with the status `200`
  - the optional response header `Link` removed for the status `200`
  - the optional response header `Link` removed for the status `400`
  - the optional response header `Link` removed for the status `404`
  - …3 more

[Change history](https://skmtc.dev/envirocar/apis/envirocar-rest-api/changes/sensors/:sensorId/get.md)

---

[API](https://skmtc.dev/envirocar/apis/envirocar-rest-api.md) · [All operations](https://skmtc.dev/envirocar/apis/envirocar-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/envirocar/envirocar-rest-api/revisions/c647cca2f102/schema)
