---
title: "Create command definition"
method: POST
path: "/actuator_command.v2.ActuatorCommandService/CreateActuatorCommand"
tags: ["Actuator Command (gRPC)"]
---

# Create command definition

`POST /actuator_command.v2.ActuatorCommandService/CreateActuatorCommand`

## Request

- Base URL: `https://api.kiloiot.io`
- URL: `https://api.kiloiot.io/actuator_command.v2.ActuatorCommandService/CreateActuatorCommand`
- Auth: API key in header `X-API-Key` and API key in header `X-Organization-Id`

Create an actuator command definition on a device. RIS enforces device write access.

**Protocol:** gRPC

**Service:** `actuator_command.v2.ActuatorCommandService`

**Method:** `CreateActuatorCommand`

**Required scope:** `commands: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)
