Device Heartbeat
import requests
url = "https://app.ubik-agent.com/api/v1/flow/mcp/devices/heartbeat"
payload = { "device_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({device_id: '<string>'})
};
fetch('https://app.ubik-agent.com/api/v1/flow/mcp/devices/heartbeat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.ubik-agent.com/api/v1/flow/mcp/devices/heartbeat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device_id": "<string>"
}
'{
"relay_connected": true,
"ok": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Device Heartbeat
POST
/
flow
/
mcp
/
devices
/
heartbeat
Device Heartbeat
import requests
url = "https://app.ubik-agent.com/api/v1/flow/mcp/devices/heartbeat"
payload = { "device_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({device_id: '<string>'})
};
fetch('https://app.ubik-agent.com/api/v1/flow/mcp/devices/heartbeat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.ubik-agent.com/api/v1/flow/mcp/devices/heartbeat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device_id": "<string>"
}
'{
"relay_connected": true,
"ok": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I

