requestToken
Testing Env
https://{{host}}:8092
Testing Env
https://{{host}}:8092
POST
/json-rpc/authorize/token/approve
WebsocketHTTP/S
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://localhost:8092/json-rpc/authorize/token/approve' \
--header 'Content-Type: application/json' \
--data-raw '{
"command": "authorize",
"subcommand": "requestToken",
"comment": "OpenHab2 Binding",
"id": "WD6nT",
"accept": true,
"tan": 4711
}'
Response Response Example
Success
{
"command": "authorize-requestToken",
"info": {
"comment": "OpenHab2 Binding",
"id": "WD6nT",
"token": "83675c61-141e-460c-8a92-c4da55b61e0d"
},
"success": true,
"tan": 4711
}
Request
Body Params application/json