---
title: "Create sensor template"
method: POST
path: "/api/v2/devices/sensor-templates"
tags: ["Sensors"]
---

# Create sensor template

`POST /api/v2/devices/sensor-templates`

## Request

- Base URL: `https://api.chirpwireless.io`
- URL: `https://api.chirpwireless.io/api/v2/devices/sensor-templates`
- Auth: API key in header `X-API-Key` and API key in header `X-Organization-Id`

Create a new sensor template.

**Required scope:** `sensors:write`

## Request body

- object
  - `description` string
  - `keyNameId` string, required
  - `organizationId` string, required
  - `sensorType` string, required
  - `unitMeasurementId` string
  - `valueType` string, required

## Response `200`

Successful response

## Other responses

- `401`: Missing or invalid API key
- `403`: Insufficient permissions (missing required scope)

---

[API](https://skmtc.dev/chirpwireless/apis/chirp-public-api.md) · [All operations](https://skmtc.dev/chirpwireless/apis/chirp-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chirpwireless/apis/chirp-public-api/revisions/0414f3e239ff?raw)
