You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/handlers/helpers.go
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,16 @@ var codeToAgentAction = map[string]errorCodeMeta{
145
145
"unauthorized": {
146
146
AgentAction: "Tell the user their INSTANODE_TOKEN is missing or invalid. Have them log in at https://instanode.dev/login to mint a new one — takes 30 seconds.",
147
147
},
148
+
// brevo_secret_mismatch is a Brevo webhook URL-path-token mismatch — NOT a
149
+
// user-auth failure. The generic "unauthorized" agent_action ("log in to mint
150
+
// a new INSTANODE_TOKEN") sent an unrelated recovery script that was
151
+
// uselessly wrong for the actual incident (operator must verify their Brevo
152
+
// dashboard webhook URL contains the configured BREVO_WEBHOOK_SECRET).
153
+
// API-6 (QA 2026-05-29): give this error its own copy. Follows the U3
AgentAction: "Tell the user this is a Brevo-webhook config mismatch, not their auth. Operators must verify the Brevo dashboard webhook URL matches the configured BREVO_WEBHOOK_SECRET — see https://instanode.dev/docs/email.",
157
+
},
148
158
"auth_required": {
149
159
AgentAction: "Tell the user this action requires an authenticated session. Have them log in or sign up at https://instanode.dev/login — both flows mint a token.",
0 commit comments