Key alerts
Get notified per API key before a limit is reached or the key expires, in the app, by email or in DeutschlandGPT Messages.
Alerts are set on a key's page: open API keys and click the key. They can be changed by the person who created the key, administrators with full rights and roles with Manage all Platform API keys.
Alerts
An alert tells you when something happens with a key. Under Alerts, Create alert offers three triggers, at most 10 alerts per key:
| Trigger | Fires when |
|---|---|
| Monthly limit reached | the month's spend reaches a share of the monthly limit, 80 % by default. Without a monthly limit it does not fire. |
| Daily spending | a day's spend goes above an amount. The day starts at midnight German time. |
| Expiry | the key expires within a number of days. |
Each alert fires at most once per period: once a month, once a day or once per expiry date. Change the threshold or the monthly limit and it can fire again in the same period. Alerts are checked every 10 minutes, so one can arrive up to 10 minutes after the event. The limits themselves apply to every request at once.
For each alert you choose one or more channels:
- In the app: the alert appears under the bell at the top right of the API key pages, for the person who last saved it with this channel.
- By e-mail: to one or more addresses. Only addresses of members of your organisation are possible; in a personal account only your own.
- In DeutschlandGPT Messages: a bot posts the alert into a channel through an incoming webhook. You can choose the webhooks you manage in Messages. The page offers this channel only when bots in Messages are available to you and you may create or manage webhooks.
Each alert has a card with a switch; a switched-off alert is dimmed and says Off. Change its threshold and channels right in the card; Add channel adds another one. A deleted alert leaves Restore in its place. The History next to the alerts shows what fired and whether each channel delivered. If a channel fails, DeutschlandGPT tries it again in the next checks, up to three times.