curl --request POST \
--url http://0.0.0.0:3000/v1/irrf-commands \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entity_id": "sensor.tv_sala",
"command_name": "power",
"code": "0000 006C...",
"remote_entity_id": "remote.ir_blaster"
}
'{
"id": 1,
"entity_registry_id": 5,
"config_entry_id": 2,
"command_name": "power",
"code": "0000 006C 0022 0002...",
"remote_entity_id": "remote.ir_blaster",
"user_id": "user_abc123"
}curl --request POST \
--url http://0.0.0.0:3000/v1/irrf-commands \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entity_id": "sensor.tv_sala",
"command_name": "power",
"code": "0000 006C...",
"remote_entity_id": "remote.ir_blaster"
}
'{
"id": 1,
"entity_registry_id": 5,
"config_entry_id": 2,
"command_name": "power",
"code": "0000 006C 0022 0002...",
"remote_entity_id": "remote.ir_blaster",
"user_id": "user_abc123"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.