Get Telegram connection status
curl --request GET \
--url https://api.sitespy.app/api/v1/telegram \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/telegram"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/telegram', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"connected": false,
"chat_id": "",
"pending_link": "https://t.me/SiteSpyBot?start=abc123",
"bot_configured": true
}Telegram Notifications
Get Telegram connection status
Get the current Telegram connection status for your API key, including any pending link.
GET
/
telegram
Get Telegram connection status
curl --request GET \
--url https://api.sitespy.app/api/v1/telegram \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/telegram"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/telegram', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"connected": false,
"chat_id": "",
"pending_link": "https://t.me/SiteSpyBot?start=abc123",
"bot_configured": true
}Authorizations
API key for authentication. You can find your API key in the Site Spy dashboard under Settings → API.

