Farbeam
Docs / API: Account

Unlink Telegram

Removes the linked chat.

DELETE/api/v1/account/telegram
PropertyValue
AuthenticationNeeds a wallet session. Sign in at the console.
Rate-limit cost0 units
StatusLive

#Request

curl -s -X DELETE "https://farbeamlabs.com/api/v1/account/telegram"
const res = await fetch("https://farbeamlabs.com/api/v1/account/telegram", {
  method: "DELETE"
});
const { data, meta, error } = await res.json();
if (error) throw new Error(`${error.code}: ${error.message}`);
console.log(data);
import os, requests

res = requests.delete(
    "https://farbeamlabs.com/api/v1/account/telegram",
    timeout=30,
)
body = res.json()
if "error" in body:
    raise RuntimeError(body["error"]["code"])
print(body["data"])

#Errors

HTTPCodeMeaning
401sign_in_requiredSign in with a wallet first.

All errors share one format. See errors.