Bonn eolais Tá tús
Tá tús á chur amárach le hobair.
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
Aistrítear an leathanach seo le meaisín mar áis. Is é an bunleagan Béarla an leagan a bhaineann leis.
Tá sé le balance.
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
GET https://nymbot.ai/api/v1/credits/balance 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann). POST Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
balance 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).null Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD key Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
Tá tús
{
"balance": 49.18,
"balance_sats": 42037,
"standard": { "credits": 120.4, "sats": 1204 },
"pro": { "credits": 408.33, "sats": 40833 },
"key": {
"id": "4f0c9a1be27d3856",
"name": "laptop scripts",
"limit_sats": 20000,
"period_used_sats": 3412,
"total_used_sats": 18230,
"reset_period": "monthly",
"reset_at": "2026-10-01T00:00:00Z"
}
}
| Tá tús | Tá sé |
|---|---|
401 | Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems |
cURL
curl https://nymbot.ai/api/v1/credits/balance \
-H "Authorization: Bearer $NYMBOT_API_KEY"
Python
import os
import requests
res = requests.get(
"https://nymbot.ai/api/v1/credits/balance",
headers={"Authorization": "Bearer " + os.environ["NYMBOT_API_KEY"]},
)
balance = res.json()
print(balance["standard"]["sats"], balance["pro"]["sats"])
JavaScript
const res = await fetch("https://nymbot.ai/api/v1/credits/balance", {
headers: { "Authorization": "Bearer " + process.env.NYMBOT_API_KEY },
});
const balance = await res.json();
console.log(balance.standard.sats, balance.pro.sats);
Tá tús á chur amárach le hobair.
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
GET https://nymbot.ai/api/v1/topup/payment-methods Tá coinneach no need.
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). bulk_bonus Tá list the extra credit on larger top-ups, agus an app: 10%, 15% or 20% more on standard top-ups from 500, 1,000 or 5,000 sats, and on Pro top-ups from 5,000, 10,000 or 50,000 sats.
Tá tús
{
"supported_methods": [
{
"method": "btc-lightning",
"display_name": "Bitcoin Lightning",
"supported_currencies": ["SATS", "USD", "BTC"],
"limits": {
"SATS": { "min": 10, "max": 1000000 },
"USD": { "min": 0.02, "max": 1170 },
"BTC": { "min": 1e-7, "max": 0.01 }
},
"tiers": ["standard", "pro"],
"default_tier": "pro",
"tier_min_sats": { "standard": 10, "pro": 100 },
"sats_per_credit": { "standard": 10, "pro": 100 },
"bulk_bonus": [
{ "bonus": 0.1, "standard_sats": 500, "pro_sats": 5000 },
{ "bonus": 0.15, "standard_sats": 1000, "pro_sats": 10000 },
{ "bonus": 0.2, "standard_sats": 5000, "pro_sats": 50000 }
]
}
]
}
cURL
curl https://nymbot.ai/api/v1/topup/payment-methods
Python
import requests
methods = requests.get("https://nymbot.ai/api/v1/topup/payment-methods").json()
print(methods["supported_methods"][0]["limits"])
JavaScript
const methods = await (await fetch("https://nymbot.ai/api/v1/topup/payment-methods")).json();
console.log(methods.supported_methods[0].limits);
Tá tús á chur amárach le blas
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). Tá sé Tá sé le credit added.
POST https://nymbot.ai/api/v1/topup/create/btc-lightning 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann).
| Tá tús | Tá sé | Tá sé | Tá tús |
|---|---|---|---|
amount | Tá sé | Tá | Tá tús á chur amárach le hobair. currency13) Cumann Uaimheadóireachta na hÉireann (cuid de Uaimhe na hÉireann). |
currency | String | Tá sé | SATS (the default), USD Tá sé BTC$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ |
tier | String | Tá sé | pro (the default) or standardNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) |
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
credits Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
Tá tús
{
"invoice_id": "b7d41e0c95a2f38e6c1d0e9a4b7f2c61d3e8a05f9b2c4d7e1a6f3b8c0d5e2a9f4",
"payment_request": "lnbc100u1p5...",
"amount_sats": 10000,
"credits": 115,
"tier": "pro",
"expires_at": "2026-09-30T09:27:00Z",
"status": "pending"
}
| Tá tús | Tá sé |
|---|---|
400 | Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systemsunsupported_method), an unknown currency (unsupported_currency13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).amount_too_small), above 1,000,000 sats (amount_too_largeTá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systemsamount_out_of_range). |
429 | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).rate_limit_exceededTá sé Retry-After). |
502 | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).invoice_unavailableTá sé Retry-After). |
cURL
curl https://nymbot.ai/api/v1/topup/create/btc-lightning \
-H "Authorization: Bearer $NYMBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 10000, "currency": "SATS", "tier": "pro"}'
Python
import os
import requests
res = requests.post(
"https://nymbot.ai/api/v1/topup/create/btc-lightning",
headers={"Authorization": "Bearer " + os.environ["NYMBOT_API_KEY"]},
json={"amount": 10000, "currency": "SATS", "tier": "pro"},
)
invoice = res.json()
print(invoice["payment_request"])
JavaScript
const res = await fetch("https://nymbot.ai/api/v1/topup/create/btc-lightning", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.NYMBOT_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ amount: 10000, currency: "SATS", tier: "pro" }),
});
const invoice = await res.json();
console.log(invoice.payment_request);
Tá sé le top-up
Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) creditedNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
GET https://nymbot.ai/api/v1/topup/status/{invoice_id} 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
status Tá sé pending Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) paid Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) credited Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems expired Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
Tá tús
{
"invoice_id": "b7d41e0c95a2f38e6c1d0e9a4b7f2c61d3e8a05f9b2c4d7e1a6f3b8c0d5e2a9f4",
"status": "credited",
"amount_sats": 10000,
"credits": 115,
"tier": "pro",
"expires_at": null,
"balance_credits": 523.33,
"balance_sats": 52333
}
| Tá tús | Tá sé |
|---|---|
400 | Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD |
404 | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).invoice_not_found). |
cURL
curl https://nymbot.ai/api/v1/topup/status/$INVOICE_ID \
-H "Authorization: Bearer $NYMBOT_API_KEY"
Python
import os, time
import requests
headers = {"Authorization": "Bearer " + os.environ["NYMBOT_API_KEY"]}
url = "https://nymbot.ai/api/v1/topup/status/" + invoice["invoice_id"]
while True:
status = requests.get(url, headers=headers).json()["status"]
if status in ("credited", "expired"):
break
time.sleep(3)
print(status)
JavaScript
const headers = { "Authorization": "Bearer " + process.env.NYMBOT_API_KEY };
const url = "https://nymbot.ai/api/v1/topup/status/" + invoice.invoice_id;
let status;
do {
await new Promise((r) => setTimeout(r, 3000));
status = (await (await fetch(url, { headers })).json()).status;
} while (status !== "credited" && status !== "expired");
console.log(status);
Tá sé Histór
Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
GET https://nymbot.ai/api/v1/queries/history 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). Tá tús á chur amárach 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
| Tá tús | Tá sé | Tá sé | Tá tús |
|---|---|---|---|
page | integer (query) | Tá sé | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). 400 invalid_value. |
page_count | integer (query) | Tá sé | Rows per page. Default 20, at maximum 100. |
start_dateend_date | Tá tús á chur amárach le hobair. | Tá sé | ISO 8601 Dates or Times. |
model | Tá tús á chur amárach le hobair. | Tá sé | Tá tá tá model. |
type | Tá tús á chur amárach le hobair. | Tá sé | chat, responses, messages, image, video, speech, transcription Tá sé embedding. |
all_keys | boolean (query) | Tá sé | Tá sé a key: true 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). false. |
key_id | Tá tús á chur amárach le hobair. | Tá sé | Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems all_keys=trueTá sé a key. |
Tá tús
{
"data": [
{
"id": "q_71c4e9a0",
"timestamp": "2026-09-30T08:12:00Z",
"model": "anthropic/claude-sonnet-5",
"type": "chat",
"input_tokens": 1240,
"output_tokens": 380,
"cached_tokens": 0,
"cost_sats": 16.2,
"cost_usd": 0.01895,
"balance": "pro",
"key_id": "4f0c9a1be27d3856",
"web_search": false,
"status": "ok"
}
],
"pagination": { "page": 1, "page_count": 20, "total": 311, "total_pages": 16 }
}
cURL
curl "https://nymbot.ai/api/v1/queries/history?page_count=50&type=chat" \
-H "Authorization: Bearer $NYMBOT_API_KEY"
Python
import os
import requests
res = requests.get(
"https://nymbot.ai/api/v1/queries/history",
headers={"Authorization": "Bearer " + os.environ["NYMBOT_API_KEY"]},
params={"page_count": 50, "type": "chat"},
)
for row in res.json()["data"]:
print(row["timestamp"], row["model"], row["cost_sats"])
JavaScript
const res = await fetch("https://nymbot.ai/api/v1/queries/history?page_count=50&type=chat", {
headers: { "Authorization": "Bearer " + process.env.NYMBOT_API_KEY },
});
for (const row of (await res.json()).data) console.log(row.timestamp, row.model, row.cost_sats);
Signing account requests
Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems Físeán Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
Tá sé a Nostr event of type 27235 (NIP-98), send base64-coded in the
Authorization Tá tús á chur amárach le hobair Nostr Tá sé front:
Tá tús
{
"kind": 27235,
"created_at": 1790726400,
"tags": [
["u", "https://nymbot.ai/api/v1/keys"],
["method", "POST"],
["nonce", "9c4e21f07a3b...16 random bytes in hex"],
["payload", "3f1a0d7c8e2b...sha256 of the exact request body in hex"]
],
"content": "",
"pubkey": "your public key in hex",
"id": "...",
"sig": "..."
}
uTá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building SystemsmethodTá sé HTTP Method.payloadIs SHA-256 of the raw request body, hex.POSTagusPATCHNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)created_atTá sé 60 segúnd ar a clock na server.- 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
GETNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)nonce13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). - 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
Content-Type: application/json.
Tá tús á chur amárach le hobair athchóirithe atá beartaithe 401 missing_nostr_authNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
invalid_nostr_authNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
nostr_auth_replayedBrazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD 429 Tá sé
Retry-After.
Browsers can call these endpoints only from Nymbot's own sites (https://nymbot.ai,
https://nymchat.app 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
OriginTá tús á chur amárach le hobair athch.
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). nsecBrazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD NOSTR_SECRET_HEX13) Cumann Uaimheadóireachta na hÉireann
Nán Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) sha256sum Tá sé macos, shasum -a 256).
cURL
nostr_auth() {
method="$1"; url="$2"; body="$3"
nonce=$(openssl rand -hex 16)
if [ -n "$body" ]; then
hash=$(printf '%s' "$body" | sha256sum | cut -d' ' -f1)
event=$(nak event --sec "$NOSTR_SECRET_HEX" -k 27235 -t "u=$url" -t "method=$method" -t "nonce=$nonce" -t "payload=$hash")
else
event=$(nak event --sec "$NOSTR_SECRET_HEX" -k 27235 -t "u=$url" -t "method=$method" -t "nonce=$nonce")
fi
printf 'Nostr %s' "$(printf '%s' "$event" | base64 | tr -d '\n')"
}
Python
# pip install coincurve requests
import base64, hashlib, json, os, time
from coincurve import PrivateKey, PublicKeyXOnly
SECRET = bytes.fromhex(os.environ["NOSTR_SECRET_HEX"])
def nostr_auth(method, url, body=b""):
pubkey = PublicKeyXOnly.from_secret(SECRET).format().hex()
tags = [["u", url], ["method", method], ["nonce", os.urandom(16).hex()]]
if body:
tags.append(["payload", hashlib.sha256(body).hexdigest()])
created_at = int(time.time())
serialized = json.dumps([0, pubkey, created_at, 27235, tags, ""], separators=(",", ":"), ensure_ascii=False)
event_id = hashlib.sha256(serialized.encode()).digest()
event = {
"id": event_id.hex(),
"pubkey": pubkey,
"created_at": created_at,
"kind": 27235,
"tags": tags,
"content": "",
"sig": PrivateKey(SECRET).sign_schnorr(event_id).hex(),
}
return "Nostr " + base64.b64encode(json.dumps(event).encode()).decode()
JavaScript
// npm install nostr-tools
import { createHash, randomBytes } from "node:crypto";
import { finalizeEvent } from "nostr-tools/pure";
const secret = Buffer.from(process.env.NOSTR_SECRET_HEX, "hex");
export function nostrAuth(method, url, body = "") {
const tags = [["u", url], ["method", method], ["nonce", randomBytes(16).toString("hex")]];
if (body) tags.push(["payload", createHash("sha256").update(body).digest("hex")]);
const event = finalizeEvent(
{ kind: 27235, created_at: Math.floor(Date.now() / 1000), tags, content: "" },
secret,
);
return "Nostr " + Buffer.from(JSON.stringify(event)).toString("base64");
}
The account summary
Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD Tá tús Top-Up Tá tús, or
null 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
GET https://nymbot.ai/api/v1/account Tá sé a Tá tús á chur amárach.
Tá tús
{
"data": {
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"balances": {
"standard": { "credits": 120.4, "sats": 1204 },
"pro": { "credits": 408.33, "sats": 40833 }
},
"keys_active": 3,
"nwc_auto_topup": {
"connected": true, "threshold_sats": 5000, "topup_sats": 20000, "tier": "pro",
"last_topup_at": null, "last_topup_sats": null, "last_error": null
}
}
}
cURL
URL=https://nymbot.ai/api/v1/account
curl "$URL" -H "Authorization: $(nostr_auth GET "$URL")"
Python
import requests
url = "https://nymbot.ai/api/v1/account"
print(requests.get(url, headers={"Authorization": nostr_auth("GET", url)}).json())
JavaScript
const url = "https://nymbot.ai/api/v1/account";
const res = await fetch(url, { headers: { "Authorization": nostrAuth("GET", url) } });
console.log(await res.json());
Tá tús key
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). Tá tús á chur amárach13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
Objects Key
{
"id": "4f0c9a1be27d3856",
"name": "laptop scripts",
"hint": "sk-nymbot-Qm7x…c2Lw",
"limit_sats": 20000,
"reset_period": "monthly",
"reset_at": "2026-10-01T00:00:00Z",
"expire_at": null,
"period_used_sats": 3412,
"total_used_sats": 18230,
"created_at": "2026-08-14T09:21:07Z",
"updated_at": "2026-09-02T17:40:55Z",
"last_used_at": "2026-09-30T08:12:00Z",
"revoked_at": null
}
hint Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
Tá tús á chur
GET https://nymbot.ai/api/v1/keys Tá sé signar.
| Tá tús | Tá sé | Tá sé | Tá tús |
|---|---|---|---|
include_revoked | boolean (query) | Tá sé | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). false. |
Tá tús
{ "data": [ { "id": "4f0c9a1be27d3856", "name": "laptop scripts", "hint": "sk-nymbot-Qm7x…c2Lw", "...": "..." } ] }
cURL
URL=https://nymbot.ai/api/v1/keys
curl "$URL" -H "Authorization: $(nostr_auth GET "$URL")"
Python
import requests
url = "https://nymbot.ai/api/v1/keys"
for key in requests.get(url, headers={"Authorization": nostr_auth("GET", url)}).json()["data"]:
print(key["id"], key["name"], key["period_used_sats"], key["limit_sats"])
JavaScript
const url = "https://nymbot.ai/api/v1/keys";
const { data } = await (await fetch(url, { headers: { "Authorization": nostrAuth("GET", url) } })).json();
for (const key of data) console.log(key.id, key.name, key.period_used_sats, key.limit_sats);
Tá sé a key
POST https://nymbot.ai/api/v1/keys Tá tús á chur amárach. 201.
| Tá tús | Tá sé | Tá sé | Tá tús |
|---|---|---|---|
name | String | Tá | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
limit_sats | Tá sé | Tá sé | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
reset_period | String | Tá sé | daily, weekly Tá sé monthlyTá sé limit_sats13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
expire_at | String agus integer. | Tá sé | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
Response (201)
{
"data": {
"id": "4f0c9a1be27d3856",
"name": "laptop scripts",
"hint": "sk-nymbot-Qm7x…c2Lw",
"limit_sats": 20000,
"reset_period": "monthly",
"key": "sk-nymbot-Qm7x...c2Lw",
"...": "the rest of the key object"
}
}
| Tá tús | Tá sé |
|---|---|
400 | Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)duplicate_name13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).unknown_parameter13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).too_many_keys). |
429 | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).rate_limit_exceededTá sé Retry-After). |
cURL
URL=https://nymbot.ai/api/v1/keys
BODY='{"name":"laptop scripts","limit_sats":20000,"reset_period":"monthly"}'
curl "$URL" \
-H "Authorization: $(nostr_auth POST "$URL" "$BODY")" \
-H "Content-Type: application/json" \
-d "$BODY"
Python
import json
import requests
url = "https://nymbot.ai/api/v1/keys"
body = json.dumps({"name": "laptop scripts", "limit_sats": 20000, "reset_period": "monthly"}).encode()
res = requests.post(
url,
data=body,
headers={"Authorization": nostr_auth("POST", url, body), "Content-Type": "application/json"},
)
print(res.json()["data"]["key"])
JavaScript
const url = "https://nymbot.ai/api/v1/keys";
const body = JSON.stringify({ name: "laptop scripts", limit_sats: 20000, reset_period: "monthly" });
const res = await fetch(url, {
method: "POST",
headers: { "Authorization": nostrAuth("POST", url, body), "Content-Type": "application/json" },
body,
});
console.log((await res.json()).data.key);
Tá sé a key
GET https://nymbot.ai/api/v1/keys/{id} Tá sé signar.
Tá tús {"data": {…}} Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems 404
key_not_found 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
cURL
URL=https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856
curl "$URL" -H "Authorization: $(nostr_auth GET "$URL")"
Python
import requests
url = "https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856"
print(requests.get(url, headers={"Authorization": nostr_auth("GET", url)}).json()["data"])
JavaScript
const url = "https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856";
console.log((await (await fetch(url, { headers: { "Authorization": nostrAuth("GET", url) } })).json()).data);
Tá sé a key.
PATCH https://nymbot.ai/api/v1/keys/{id} Tá sé signar.
Tá sé sé an name, limit_sats, reset_period agus
expire_at13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). null 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).400 key_revokedTá tús
{"data": {…}} Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems
cURL
URL=https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856
BODY='{"limit_sats":50000,"expire_at":null}'
curl -X PATCH "$URL" \
-H "Authorization: $(nostr_auth PATCH "$URL" "$BODY")" \
-H "Content-Type: application/json" \
-d "$BODY"
Python
import json
import requests
url = "https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856"
body = json.dumps({"limit_sats": 50000, "expire_at": None}).encode()
res = requests.patch(
url,
data=body,
headers={"Authorization": nostr_auth("PATCH", url, body), "Content-Type": "application/json"},
)
print(res.json()["data"])
JavaScript
const url = "https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856";
const body = JSON.stringify({ limit_sats: 50000, expire_at: null });
const res = await fetch(url, {
method: "PATCH",
headers: { "Authorization": nostrAuth("PATCH", url, body), "Content-Type": "application/json" },
body,
});
console.log((await res.json()).data);
Tá sé an key
DELETE https://nymbot.ai/api/v1/keys/{id} Tá sé signar.
Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) revoked_at Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) include_revoked=trueBrazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
Tá tús
{ "data": { "id": "4f0c9a1be27d3856", "revoked": true } }
cURL
URL=https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856
curl -X DELETE "$URL" -H "Authorization: $(nostr_auth DELETE "$URL")"
Python
import requests
url = "https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856"
print(requests.delete(url, headers={"Authorization": nostr_auth("DELETE", url)}).json())
JavaScript
const url = "https://nymbot.ai/api/v1/keys/4f0c9a1be27d3856";
const res = await fetch(url, { method: "DELETE", headers: { "Authorization": nostrAuth("DELETE", url) } });
console.log(await res.json());
Tá sé le NWC Auto-Top-Up.
Connect a Lightning wallet with Nostr Wallet Connect and Nymbot tops up a balance by itself when API spending runs it low. The app's API sheet has the same settings; these are the endpoints behind it. All of them need a Tá tús á chur amárach.
How it works: after an API request is charged to the balance you chose to watch, if that balance has fallen below your threshold, Nymbot makes an invoice for your top-up amount, asks your wallet to pay it, and adds the credit. It tops up at most once every 5 minutes for each nym and balance, so a burst of requests cannot drain the wallet. Spending in the apps does not trigger it. The time and size of the last top-up, and the last error, are in the settings; if a payment went through after an error, checking its invoice with Tá tús Top-Up Crédit na le.
A connection string lets whoever holds it ask your wallet to pay. Nymbot
stores it encrypted and only ever uses it to pay its own top-up invoices, but make a
connection just for this, with a spending budget in your wallet, so the most it could ever
pay is a number you chose. The wallet has to support pay_invoice.
Tá tús á wallet
POST https://nymbot.ai/api/v1/nwc-auto-topup/connect Tá sé signar.
| Tá tús | Tá sé | Tá sé | Tá tús |
|---|---|---|---|
nwc_url | String | Tá | Tá tús á chur amárach le hobair. nostr+walletconnect://. Nymbot asks the wallet for get_info Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) |
threshold_sats | Tá sé | Tá | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
topup_sats | Tá sé | Tá | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
tier | String | Tá sé | pro (the default) or standard13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
Tá tús
{
"data": {
"connected": true,
"threshold_sats": 5000,
"topup_sats": 20000,
"tier": "pro",
"last_topup_at": null,
"last_topup_sats": null,
"last_error": null
}
}
| Tá tús | Tá sé |
|---|---|
400 | Not a connection string (invalid_nwc_urlNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)nwc_unreachable13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).nwc_rejectedTá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systemsnwc_missing_permission13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
501 | Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systemsnwc_unavailable13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
cURL
URL=https://nymbot.ai/api/v1/nwc-auto-topup/connect
BODY='{"nwc_url":"nostr+walletconnect://...","threshold_sats":5000,"topup_sats":20000,"tier":"pro"}'
curl "$URL" \
-H "Authorization: $(nostr_auth POST "$URL" "$BODY")" \
-H "Content-Type: application/json" \
-d "$BODY"
Python
import json, os
import requests
url = "https://nymbot.ai/api/v1/nwc-auto-topup/connect"
body = json.dumps({
"nwc_url": os.environ["NWC_URL"],
"threshold_sats": 5000,
"topup_sats": 20000,
"tier": "pro",
}).encode()
res = requests.post(
url,
data=body,
headers={"Authorization": nostr_auth("POST", url, body), "Content-Type": "application/json"},
)
print(res.json())
JavaScript
const url = "https://nymbot.ai/api/v1/nwc-auto-topup/connect";
const body = JSON.stringify({
nwc_url: process.env.NWC_URL,
threshold_sats: 5000,
topup_sats: 20000,
tier: "pro",
});
const res = await fetch(url, {
method: "POST",
headers: { "Authorization": nostrAuth("POST", url, body), "Content-Type": "application/json" },
body,
});
console.log(await res.json());
Tá sé a settings
GET https://nymbot.ai/api/v1/nwc-auto-topup Tá sé signar.
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). connected: false 13) Cumann Uaimheadóireachta na hÉireann (cuid de
null Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
cURL
URL=https://nymbot.ai/api/v1/nwc-auto-topup
curl "$URL" -H "Authorization: $(nostr_auth GET "$URL")"
Python
import requests
url = "https://nymbot.ai/api/v1/nwc-auto-topup"
print(requests.get(url, headers={"Authorization": nostr_auth("GET", url)}).json())
JavaScript
const url = "https://nymbot.ai/api/v1/nwc-auto-topup";
console.log(await (await fetch(url, { headers: { "Authorization": nostrAuth("GET", url) } })).json());
Tá sé desconnect
DELETE https://nymbot.ai/api/v1/nwc-auto-topup/connection Tá sé signar.
Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
Tá tús
{ "data": { "connected": false, "threshold_sats": null, "topup_sats": null, "tier": null, "last_topup_at": null, "last_topup_sats": null, "last_error": null } }
cURL
URL=https://nymbot.ai/api/v1/nwc-auto-topup/connection
curl -X DELETE "$URL" -H "Authorization: $(nostr_auth DELETE "$URL")"
Python
import requests
url = "https://nymbot.ai/api/v1/nwc-auto-topup/connection"
print(requests.delete(url, headers={"Authorization": nostr_auth("DELETE", url)}).json())
JavaScript
const url = "https://nymbot.ai/api/v1/nwc-auto-topup/connection";
const res = await fetch(url, { method: "DELETE", headers: { "Authorization": nostrAuth("DELETE", url) } });
console.log(await res.json());
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD POST /images/generations, POST /images/edits,
POST /videos, POST /audio/speech, POST /audio/transcriptions,
POST /audio/translations agus POST /embeddingsBrazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
Nymbot speaks two versions of the same idea, from one backend: Lightning Labs'
Tá 402 Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) LSATTá tús á chur amárach le hobair athchóirithe atá beartaithe
Tá tús Tá sé HTTP authentication. lightning Tá sé
charge Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). API_L402_SECRET 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). openssl rand -hex 32Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) API_L402_SECRET_PREVIOUS Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems
Tá Challenge
Send the request with no Authorization Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) 402 Payment Required Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD WWW-Authenticate 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
HTTP/1.1 402 Payment Required
Content-Type: application/problem+json; charset=utf-8
Cache-Control: no-store
WWW-Authenticate: L402 macaroon="AgJC...", invoice="lnbc2370n1..."
WWW-Authenticate: LSAT macaroon="AgJC...", invoice="lnbc2370n1..."
WWW-Authenticate: Payment id="kM9x...", realm="nymbot", method="lightning", intent="charge",
request="eyJhbW91bnQiOiIyMzciLC...", description="Nymbot API POST /images/generations (237 sats)",
digest="sha-256=:X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=:", expires="2026-09-30T12:15:00.000Z",
opaque="eyJlbmRwb2ludCI6IlBPU1QgL2ltYWdlcy9nZW5lcmF0aW9ucyJ9"
{
"type": "https://paymentauth.org/problems/payment-required",
"title": "Payment Required",
"status": 402,
"detail": "This request costs 237 sats. Pay the Lightning invoice, then send the identical request again ...",
"challengeId": "kM9x...",
"amount_sats": 237,
"invoice": "lnbc2370n1...",
"payment_hash": "9db1370f...",
"expires_at": "2026-09-30T12:15:00.000Z",
"error": { "message": "This request costs 237 sats. ...", "type": "payment_required", "code": "payment_required", "param": null }
}
Tá pay request Tá sé base64url JSON:
{"amount":"237","currency":"sat","methodDetails":{"invoice":"lnbc...","network":"mainnet","paymentHash":"..."}}.
Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) Content-Type Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) Tá tús Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems
Content-Type 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann)./images/edits, /audio/transcriptions, /audio/translationsBrazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
Each address can ask for 30 challenges a minute (an IPv6 address counts as its whole /64).
Requests whose address is not known share a stricter 10 a minute, and there is an overall cap
on the challenges Nymbot issues across all addresses; a request refused before a challenge is
made (for example with a body that is not valid JSON) does not count toward it. Beyond that the
answer is 429 Tá sé Retry-AfterBrazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD Content-Type Tá sé application/json Tá sé
multipart/form-data Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) 415 Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD Tá tús á chur amárach.
Tá sé le pay
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
| Tá sé | Tá sé |
|---|---|
| Tá 402 | Authorization: L402 <macaroon>:<preimage> (LSAT Nó cliceáil anseo: WEB |
| Tá tús | Authorization: Payment <base64url JSON>Tá sé JSON {"challenge": {every parameter of the challenge, as sent}, "payload": {"preimage": "<hex>"}} |
Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) nymbot
Object has no balance fields: {"payment": "l402", "tier": "pro", "paid_sats": 237,
"charged_sats": 237}Tá sé an no X-Nymbot-Balance-Sats Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building Systems Payment-Receipt Header (base64url JSON with the challenge id, the payment hash as reference, status agus
timestampNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
| Tá tús | Tá sé |
|---|---|
402 payment_already_used | Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD lnget Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) |
402 payment_mismatch | 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). Content-Type Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) Tá tús á chur amárach (refund_token agus refund_sats Tá sé le corpus). |
402 payment_expired | Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) Tá tús á chur amárach (refund_token agus refund_sats 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). |
401 invalid_preimage | Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD |
401 invalid_payment_credential | The credential is malformed, was changed after Nymbot issued it, or names a payment hash Nymbot never issued an invoice for. A macaroon with a caveat Nymbot does not know, or with conflicting caveats, is refused. |
429 rate_limit_exceeded | Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD Retry-After. |
cURL
BODY='{"model":"nano-banana","prompt":"a lighthouse at dusk","response_format":"b64_json"}'
URL=https://nymbot.ai/api/v1/images/generations
# 1. Get the challenge
CH=$(curl -s -D - -o /dev/null "$URL" -H "Content-Type: application/json" -d "$BODY" | grep -i '^www-authenticate: L402')
MAC=$(echo "$CH" | sed -E 's/.*macaroon="([^"]+)".*/\1/')
INVOICE=$(echo "$CH" | sed -E 's/.*invoice="([^"]+)".*/\1/')
# 2. Pay $INVOICE with your wallet and copy the preimage
PREIMAGE=...
# 3. Send the identical request with the credential
curl "$URL" -H "Content-Type: application/json" -H "Authorization: L402 $MAC:$PREIMAGE" -d "$BODY"
lnget
# lnget (Lightning Labs) pays L402 challenges from your own lnd node and retries for you
lnget -X POST -H "Content-Type: application/json" \
-d '{"model":"nano-banana","prompt":"a lighthouse at dusk","response_format":"b64_json"}' \
https://nymbot.ai/api/v1/images/generations
Python
import base64, json, re
import requests
url = "https://nymbot.ai/api/v1/images/generations"
body = json.dumps({"model": "nano-banana", "prompt": "a lighthouse at dusk", "response_format": "b64_json"}).encode()
headers = {"Content-Type": "application/json"}
challenge = requests.post(url, data=body, headers=headers)
assert challenge.status_code == 402
info = challenge.json()
print("Pay", info["amount_sats"], "sats:", info["invoice"])
preimage = pay_with_your_wallet(info["invoice"]) # 64 hex characters
# L402
mac = re.search(r'L402 macaroon="([^"]+)"', challenge.headers["WWW-Authenticate"]).group(1)
res = requests.post(url, data=body, headers={**headers, "Authorization": f"L402 {mac}:{preimage}"})
print(res.json()["nymbot"])
JavaScript
const url = "https://nymbot.ai/api/v1/images/generations";
const body = JSON.stringify({ model: "nano-banana", prompt: "a lighthouse at dusk", response_format: "b64_json" });
const headers = { "Content-Type": "application/json" };
const challenge = await fetch(url, { method: "POST", headers, body });
const www = challenge.headers.get("www-authenticate");
// The Payment scheme: echo every challenge parameter back with the preimage
const start = www.indexOf("Payment ");
const params = Object.fromEntries([...www.slice(start + 8).matchAll(/(\w+)="((?:[^"\\]|\\.)*)"/g)].map((m) => [m[1], m[2]]));
const { invoice } = JSON.parse(Buffer.from(params.request, "base64url").toString()).methodDetails;
const preimage = await payWithYourWallet(invoice);
const credential = Buffer.from(JSON.stringify({ challenge: params, payload: { preimage } })).toString("base64url");
const res = await fetch(url, { method: "POST", headers: { ...headers, Authorization: `Payment ${credential}` }, body });
console.log((await res.json()).nymbot, res.headers.get("payment-receipt"));
Tá cliceáil anseo: WEB mppx Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
Tá video
Tá pay POST /videos Tá sé 202 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
status_url: GET Nó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú)
{
"id": "vid_...",
"status": "in_progress",
"status_url": "https://nymbot.ai/api/v1/videos/vid_...?exp=1790000000&sig=...",
"nymbot": {
"payment": "l402", "tier": "pro", "paid_sats": 4800, "charged_sats": 4800,
"refund_token": "REFUND-5E0B..."
}
}
Tá sé refund_token Tá tús á chur amárach le hobair athchóirithe atá beartaithe ar 22 scoil a thóg Western Building SystemsGET /api/v1/l402/refunds Tá sé "status": "pending"13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
refund_sats Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
Tá tús
If a paid request fails and the provider billed Nymbot for the attempt, the payment is kept and
the error says so, with charged_satsNó cliceáil anseo: WEB -- (Scrollaigh síos beagán a fheiceáil ar an gCód leabú) Tá tús á chur amárach Tá tús á chur amárach:
{
"error": {
"message": "The image generator failed. Nothing was charged. Please try again. The 237 sats you paid are on refund token REFUND-...",
"type": "api_error",
"code": "upstream_error",
"refund_token": "REFUND-0C15DBED145D59131BA70298A413ADEB3D9B9AB082C476EA70A5BD38FCA5DE6D",
"refund_sats": 237,
"refund_expires_at": "2026-10-30T12:00:00.000Z"
}
}
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). nymbot Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD 413
13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
A refund token is a random 256-bit code. Nymbot stores only its hash, and it expires after 30 days. It holds a sat balance, and you can:
- Pay an nó. Tá sé
Authorization: Bearer REFUND-…13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).refund_token_satsTá sénymbot13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).402refund_insufficient13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann). - Tá sé le.
GET /api/v1/l402/refunds13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).{"sats": 237, "status": "open", "expires_at": "..."}. - 13) Cumann Uaimheadóireachta na hÉireann (cuid de Chumann Tarrtháil Uaimhe na hÉireann).
- Tá sé an NIM. Tá tús á Tá tús á chur amára in the
Nymbot app, or call
POST /api/v1/l402/refunds/redeemTá a Tá tús á chur amárach agus{"refund_token": "REFUND-...", "balance": "standard"}Tá sé"pro"Brazzers físeán catagóir Inexperienced, Déagóirí, Seapáinis, Aziatochki, Téalainnis, Físeán HD ar a dtugtar Téalainnis Cailín Kim watch gan chlárú sa HD
cURL
URL=https://nymbot.ai/api/v1/l402/refunds/redeem
BODY='{"refund_token":"REFUND-...","balance":"standard"}'
curl "$URL" \
-H "Authorization: $(nostr_auth POST "$URL" "$BODY")" \
-H "Content-Type: application/json" \
-d "$BODY"
Tá tús
{ "data": { "credited": 23, "tier": "standard", "balance_credits": 123, "remaining_sats": 7 } }