Skip to main content

Notifications

Lantfly tells you when something needs your attention: a run failed, a monitor fired, credit is running low, a listening alert went off. Notifications go to the bell in the top bar, by email, and to the alert channels your account sets up.

The bell​

The bell shows unread notifications and updates every minute. Click one to open what it is about. In an organization, each member has their own read state.

Choose what you get​

Open Settings → Notifications. The table lists every notification type, grouped as Runs, Automation, Billing, Actor development, Team, Listening and Support, with a switch for in-app and for email. Email goes only to verified addresses.

Among the types:

TypeWhenDefault
Run failedA run failed or timed outIn-app
Monitor alertA monitoring rule firedIn-app and email
Schedule failedA schedule could not start its runIn-app and email
Webhook failingA webhook keeps failingIn-app
Integration failingAn export such as Google Sheets gave upIn-app and email
Low credit / out of creditUsage is nearly or fully used up (once per billing period)In-app and email
Unusual usageSpending over the last 24 hours is far above your usual daily spendIn-app and email (owner and admins)
Payment failed, subscription ending, payments, refunds, invoicesBilling eventsIn-app and email
Listening alertA listening alert rule firedIn-app and email
Team invitation acceptedSomeone joined your teamIn-app
Store reviewA review of your actor, or a reply to yoursIn-app
Monthly developer summaryRuns, accounts, error rate and new reviews of your public actors last monthEmail
Support replySupport answered your ticketIn-app and email
Alert channel brokenA channel's token could not be renewedIn-app and email (owner and admins)

Billing notifications go only to the owner and admins of an account.

Two cards below the table:

  • Monitoring alerts lists the monitoring rules of the account and links to each one.
  • Schedules that fail to start lets you turn the failure notification on or off per schedule.

Security emails (a sign-in from a new browser, a new API token, two-factor changes and similar) are always sent and cannot be turned off.

Alert channels​

Owners and admins can send notifications to chat apps and other places in the Alert channels card. Every notification of the chosen Types is posted there, for the whole account (none selected means every type).

KindWhat you enter
SlackAn incoming webhook URL (https://hooks.slack.com/services/…)
DiscordA channel webhook URL (https://discord.com/api/webhooks/…)
Webhook (JSON)Any URL. It receives the notification as signed JSON (see below).
TelegramYour Bot token from @BotFather and the Chat id (add the bot to the group first). For a group with topics, a Topic (thread) id.
Zalo OAYour Official Account OA access token and a Recipient id: a follower (user id) or a group of the OA
Zalo ZNSPhone numbers (1 to 10 Vietnamese numbers) and an approved ZNS template
Email listUp to 20 addresses, comma-separated. Each notification is emailed to all of them.

To add one:

  1. Open Settings → Notifications and, in Alert channels, click Add channel.
  2. Pick the Kind, enter a Name and the fields above, and pick the Types to send.
  3. Click Add, then send a test from the channel to check it. For Telegram, the test also checks the bot token.

Tokens and addresses are stored encrypted. Tokens are never shown again; only the end of an address is shown. Use Replace to paste a new token. Addresses on private networks are refused.

Signed JSON webhook​

A Webhook (JSON) channel receives each notification as JSON (type, title, body, url, data). Its signing secret is shown once when you create the channel; Rotate gives a new one and the old one stops working at once. Each request carries:

HeaderValue
X-Lantfly-TimestampUnix time of the request
X-Lantfly-Signaturesha256= and the HMAC-SHA256 of timestamp.body with the secret

Recompute the signature over the timestamp, a dot and the raw body, compare in constant time, and reject requests more than 5 minutes old. See Webhook signatures.

Zalo OA tokens​

Zalo OA access tokens expire after about 25 hours. Turn on Auto-refresh (recommended) and enter the Refresh token, App id and App secret key of your Zalo app: Lantfly renews the token before it expires. If it cannot, the channel shows Needs a new token and owners and admins get a notification; paste a new token with Replace.

Zalo ZNS​

ZNS sends an approved Zalo template message to phone numbers. Under Send through, pick:

  • My own Official Account: enter your OA access token, App secret key, the ZNS template id and the Template parameters, one per line as parameter=source. Sources are title, body, url, type, account, date, time, datetime, data.KEY or text: followed by fixed text.
  • Lantfly's Official Account (daily limit), when it is offered: Pick a Lantfly template. Each phone number must first confirm a 6-digit code sent by Zalo (Send code, then Verify; a code is valid for 10 minutes) before it receives messages, and the number of messages per day is limited.

Each ZNS message is charged by Zalo.

The channel's history lists the last 50 messages tried, with masked phone numbers and their status.

API​

RequestWhat it does
GET /api/v3/notificationsYour notifications (unread=1, per_page), with meta.unread_count
POST /api/v3/notifications/:id/read, POST /api/v3/notifications/read-allMark as read
DELETE /api/v3/notifications/:idRemove from your bell
GET / PUT /api/v3/notifications/settingsRead or save [{ type, in_app, email }]
GET / POST /api/v3/notifications/channelsList or add alert channels (owner and admins)
PATCH / DELETE /api/v3/notifications/channels/:idChange the name and types, or remove
POST /api/v3/notifications/channels/:id/testSend a sample now
POST /api/v3/notifications/channels/:id/rotate-secretNew secret for a JSON webhook; for Telegram and Zalo, { "secret": "…" } replaces the token