---
title: "Create widget"
method: POST
path: "/widget.v2.WidgetService/CreateWidget"
tags: ["Widget (gRPC)"]
---

# Create widget

`POST /widget.v2.WidgetService/CreateWidget`

## Request

- Base URL: `https://api.kiloiot.io`
- URL: `https://api.kiloiot.io/widget.v2.WidgetService/CreateWidget`
- Auth: API key in header `X-API-Key` and API key in header `X-Organization-Id`

Add a widget to a dashboard.

**Protocol:** gRPC

**Service:** `widget.v2.WidgetService`

**Method:** `CreateWidget`

**Required scope:** `dashboards:write`

## Response `200`

Successful gRPC response

## Other responses

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

---

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