Skip to main content
POST
/
v1
/
service
/
{domain}
/
{service}
Call a service on an entity
curl --request POST \
  --url http://0.0.0.0:3000/v1/service/{domain}/{service} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity_id": "light.sala",
  "data": {
    "brightness": 200
  }
}
'
{
  "entity_id": "light.sala",
  "data": {
    "brightness": 200
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.unicontrol.me/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Organization-Id
string

ID da organização para contexto (opcional). Quando presente, filtra recursos da org.

Path Parameters

domain
string
required

Domínio da entidade (ex: light, switch, cover)

service
string
required

Serviço a executar (ex: turn_on, turn_off, set_value)

Body

application/json
entity_id
string
required

entity_id da entidade alvo

data
object

Dados adicionais do serviço (ex: brightness, color)

Response

Service executed

The response is of type object.