Docs / API: Account
Account
Returns the wallet address, the plan, limits, keys and Telegram state. Needs a session.
GET/api/v1/account
| Property | Value |
|---|---|
| Authentication | Needs a wallet session. Sign in at the console. |
| Rate-limit cost | 0 units |
| Status | Live |
#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
| HTTP | Code | Meaning |
|---|---|---|
| 401 | sign_in_required | Sign in with a wallet first. |
All errors share one format. See errors.