---
title: "Create digital device"
method: POST
path: "/api/v2/devices"
tags: ["Devices"]
---

# Create digital device

`POST /api/v2/devices`

## Request

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

Provision a new digital device with optional sensor attachment.

**Required scope:** `devices:write`

## Query parameters

- `organizationId` string, required

## Request body

- object
  - `name` string, required: Device name
  - `physicalDevice` object: Physical device configuration (required for physical devices)
    - `clientDeviceId` string, required: Client device ID (e.g. DevEUI for LoRaWAN)
    - `connectionId` string, required: Connection ID to bind this device to
    - `configuration` object: Connection-specific configuration (e.g. LoRaWAN keys)
  - `images` object[]: Media attachments for the device
    - `mediaId` string, required
    - `isCover` boolean
    - `position` integer

## Response `200`

Created

- object
  - `id` string
  - `name` string
  - `organizationId` string
  - `physicalDevice` object
    - `id` string
    - `clientDeviceId` string
    - `connectionId` string
    - `configuration` object
    - `createdAt` string
    - `updatedAt` string
  - `sensors` object[]
    - `id` string
    - `sensorTemplateId` string
    - `createdAt` string
    - `updatedAt` string
  - `images` object[]
    - `id` string
    - `filename` string
    - `contentType` string
    - `url` string
    - `isCover` boolean
    - `position` integer
    - `sizeBytes` integer
    - `createdAt` string
  - `createdAt` string
  - `updatedAt` string

## 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)
