Skip to content

Tool returns 401 or 403

When a tool fails with HTTP 401 or 403, the assistant cannot fetch live data. Visitors may see a generic apology or a text-only fallback.

WhereWhat you see
Assistant test panelTool call red badge; 401 Unauthorized or 403 Forbidden
Tool test pageRaw response status from your API
Tool logsTools → Logs — failed execution with status code
Visitor chat”I couldn’t look that up right now” (no rich cards)
flowchart TD
A[Tool fails 401/403] --> B{Test tool in dashboard}
B -->|Fails| C[Check credential]
B -->|Works| D[Check param mapping]
C --> E{Credential type}
E -->|API key| F[Key valid and sent in correct header?]
E -->|OAuth| G[Token expired? Re-authorize]
E -->|Bearer| H[Value matches your API docs?]
D --> I[strict_params missing required field?]
  1. Credentials → open the credential used by the tool.
  2. Re-enter the API key or re-run OAuth authorization.
  3. Tools → Test with sample parameters.
Credential typeCommon fix
API keyRegenerate key in your system; update Chatevo
Bearer tokenPaste new static token
OAuth 2.0Click Re-authorize
HMACVerify secret matches your server

Check tool config under Headers and Query params:

MistakeFix
Authorization duplicatedChatevo adds credential header — remove manual duplicate
API key in query but server expects headerMove to header per your API docs
Missing Content-Type on POSTAdd application/json header

Your API may block Chatevo egress IPs or require scopes:

  • Allowlist Chatevo IP ranges (provided on Enterprise support request)
  • Ensure OAuth scopes include the endpoint being called

The credential is valid but not permitted for the requested resource:

  • Order belongs to a different account
  • API key is read-only but endpoint requires write
  • Role-based access missing for the tested record

Test with a known-good ID from your API docs.

Misconfigured path params can hit protected routes:

GET /orders/{order_id} → /orders/undefined → 403

Enable strict params and verify test inputs.

  1. Tools → Test — expect 200 and valid JSON.
  2. Assistants → Test — ask a question that triggers the tool.
  3. Check Tools → Logs — latest entry shows success: true.