Authentication
Authenticate bot requests for REST and events
All bot requests use:
Authorization: Bot YOUR_BOT_TOKENREST Base URL
https://api.vxil.io/api/bot/v1Event Connection
Use Socket.IO and pass token during auth handshake.
import { io } from "socket.io-client";
const socket = io("wss://api.vxil.io", {
auth: { token: "YOUR_BOT_TOKEN" },
transports: ["websocket"],
});Error Cases
401missing/invalid token403token valid but bot not allowed for action