Farbeam
Docs / API: Alert rules

List deliveries

Returns the delivery log of one rule, newest first. Log rows are kept for 14 days.

GET/api/v1/rules/{id}/deliveries
PropertyValue
AuthenticationRequired. Send Authorization: Bearer <key>.
Rate-limit cost1 unit
StatusLive

#Parameters

NameInTypeRequiredDescription
idpathstringYesRule id.
limitqueryintegerNoFrom 1 to 100. Default 25.

#Request

curl -s "https://farbeamlabs.com/api/v1/rules/<id>/deliveries" \
  -H "Authorization: Bearer $FARBEAM_KEY"
const res = await fetch("https://farbeamlabs.com/api/v1/rules/<id>/deliveries", {
  headers: { Authorization: `Bearer ${process.env.FARBEAM_KEY}` }
});
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/rules/<id>/deliveries",
    headers={"Authorization": f"Bearer {os.environ['FARBEAM_KEY']}"},
    timeout=30,
)
body = res.json()
if "error" in body:
    raise RuntimeError(body["error"]["code"])
print(body["data"])

You can send this request now in the API playground.

#Errors

HTTPCodeMeaning
401missing_keyThe request has no key.
404not_foundThe item does not exist.

All errors share one format. See errors.