Farbeam
Docs / API: Account

Account

Returns the wallet address, the plan, limits, keys and Telegram state. Needs a session.

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

#Request

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

res = requests.get(
    "https://farbeamlabs.com/api/v1/account",
    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.