Tg Install
const options = {
method: 'POST',
headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({bot_token: '<string>'})
};
fetch('https://api.browser-use.com/api/v3/boxes/me/tg', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.browser-use.com/api/v3/boxes/me/tg \
--header 'Content-Type: application/json' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--data '
{
"bot_token": "<string>"
}
'import requests
url = "https://api.browser-use.com/api/v3/boxes/me/tg"
payload = { "bot_token": "<string>" }
headers = {
"X-Browser-Use-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"installed": true,
"bot_username": "<string>",
"deeplink": "<string>",
"setup_token": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Boxes
Tg Install
Install a Telegram bot on the box. Returns a deeplink the user taps to pair.
POST
/
boxes
/
me
/
tg
Tg Install
const options = {
method: 'POST',
headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({bot_token: '<string>'})
};
fetch('https://api.browser-use.com/api/v3/boxes/me/tg', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.browser-use.com/api/v3/boxes/me/tg \
--header 'Content-Type: application/json' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--data '
{
"bot_token": "<string>"
}
'import requests
url = "https://api.browser-use.com/api/v3/boxes/me/tg"
payload = { "bot_token": "<string>" }
headers = {
"X-Browser-Use-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"installed": true,
"bot_username": "<string>",
"deeplink": "<string>",
"setup_token": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I