Browse docs
Connect Better Stack
Connect Better Stack so the AI can check uptime monitors and incidents for verified visitors, and Errors webhooks feed your synced incidents.
This page explains how to connect Better Stack to an Axoryn project: Uptime monitors and incidents through the API, and Better Stack Errors through outgoing webhooks. It is for owners and admins who manage integrations.
Before you start
- Plan. Better Stack is a connector, included on the Engineer and Autopilot plans. On other plans the panel says Better Stack is on the Engineer plan, with nothing to fill in. See Billing and usage.
- Role. Only owners and admins can connect, change or remove integrations.
- A Better Stack Global API token, which covers Uptime and Errors.
Connect Better Stack
-
In Better Stack, open API tokens and create a Global token.
-
In Axoryn, open your project, select Integrations in the sidebar, select Add integration, then select Better Stack.
-
Fill in the fields:
Field What to enter ”API token” Required. The Global API token. ”Webhook secret” Required. A secret you choose. “Better Stack must send the same value as header X-Webhook-Secret. Deliveries are rejected until it is set.” -
Select Continue, choose the tools in What the AI may do, then select Continue to test. The test runs two checks, uptime (reads your monitors) and errors (reads your Errors applications). The connection is saved if at least one passes. Then select Done.
-
Open the Better Stack card and copy the Webhook URL from the Connection tab. In Better Stack, open Errors, Outgoing webhooks, paste the URL, and enable New error, Reoccurred, Resolved, Ignored and Unresolved.
-
Under Advanced in the same Better Stack webhook, add the header
X-Webhook-Secretwith the same secret you entered in Axoryn.
If only one check passes, the integration still connects but shows Needs attention with The token cannot reach every feature of this provider. Use a Global token to fix it.
What Axoryn reads
| Tool | Type | What it does |
|---|---|---|
| ”List monitors” | Read | Lists up to 20 uptime monitors and their status. |
| ”List incidents” | Read | Lists up to 10 recent uptime incidents. |
| ”Get incident” | Read | Fetches one uptime incident by its ID. |
| ”Resolve incident” | Changes data | Resolves an uptime incident. It doesn’t resolve Errors groups. Off by default. |
In a visitor conversation, the read tools only return data for visitors whose identity is verified. For anyone else, Better Stack isn’t called and the AI gets nothing. See Identify your users.
For a verified visitor, a monitor contains only its name (with email addresses replaced by [redacted]) and status. An incident contains only its ID, name, status, and start and resolve times. Monitor URLs, causes and links stay out of conversations.
Synced incidents and errors
- Uptime incidents sync every 10 minutes, up to 50 at a time.
- Errors arrive through the outgoing webhook only: new errors, reoccurrences, spikes, threshold alerts, and resolved, ignored or unresolved changes.
The AI can match a verified visitor’s report against these synced incidents. When a conversation is handed to your team, the handoff brief can list them under Errors around this time. See Human handoff.
Resolving incidents needs approval
Resolve incident is off by default. To turn it on, open the integration, go to the AI tools tab, turn it on, and select Save AI tools.
During a conversation, a resolve request waits under Needs you on the Integrations page until an owner or admin selects Approve and run or Reject. Visitors can never approve it, and requests expire after 24 hours. See Integrations overview.
No automatic error fixes
When you open the Better Stack integration, it says “Automatic fixes are not supported: Better Stack Errors groups have no public resolve API, and uptime incidents are monitoring incidents rather than code errors. Connect for visibility; automatic code fixes are not supported.”
Activity, health and disconnect
- The Activity tab lists every lookup and change the AI made through Better Stack in the last 90 days.
- The card shows its health. Problems appear under Needs you with a fix.
- To pause the integration, switch off Active in the Connection tab and select Save.
- To remove it, select Disconnect and confirm. The AI stops using it right away, its webhook URL stops working, and synced incidents from it are deleted. To be sure the token can’t be used anymore, also delete it in Better Stack.
Troubleshooting
| What you see | What to do |
|---|---|
| ”Webhook deliveries are rejected until a webhook secret is set.” | Select Add webhook secret, enter a secret, and add the same value as the X-Webhook-Secret header in Better Stack. |
| Errors never show up | Check that the outgoing webhook has the Axoryn URL and the X-Webhook-Secret header with the exact same secret. |
| ”uptime” or errors check fails with HTTP 401 or HTTP 403 | The token can’t reach that product. Create a Global token. |
| ”The provider is rate limiting requests.” | Axoryn retries automatically. |