Developer & Agent API Portal

Developer Security & API Troubleshooting

Keep credentials server-side, obey CORS allowlists, and troubleshoot failed HTTP/JSON responses.

Last updated: 1 min read

Developer Best Practices

  • Never Embed Private Tokens Client-Side: Any OAuth token or webhook secret must stay in server-side environment variables, never inside browser JavaScript or GitHub repositories.
  • Validate Timeouts & Non-JSON Responses: Always wrap external HTTP calls in 3–5 second timeouts and check response.ok plus Content-Type: application/json cleanly.
  • Respect CORS Allowlists: State-changing or origin-checked routes permit official Fusion Hub origins (panel.fusionhub.in, fusionhub.in, bot.fusionhub.in, docs.fusionhub.in); public read APIs (/api/v1/*, /api/stats, /api/mcp) send Access-Control-Allow-Origin: *.

Search Fusion Bot Documentation