Register Device
import requests
url = "https://app.ubik-agent.com/api/v1/flow/mcp/devices/register"
payload = {
"device_id": "<string>",
"device_name": "<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>', device_name: '<string>'})
};
fetch('https://app.ubik-agent.com/api/v1/flow/mcp/devices/register', 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/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device_id": "<string>",
"device_name": "<string>"
}
'{
"ok": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Register Device
POST
/
flow
/
mcp
/
devices
/
register
Register Device
import requests
url = "https://app.ubik-agent.com/api/v1/flow/mcp/devices/register"
payload = {
"device_id": "<string>",
"device_name": "<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>', device_name: '<string>'})
};
fetch('https://app.ubik-agent.com/api/v1/flow/mcp/devices/register', 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/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device_id": "<string>",
"device_name": "<string>"
}
'{
"ok": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Response
Successful Response
Was this page helpful?
⌘I

