VXIL

Authentication

Authenticate bot requests for REST and events

All bot requests use:

Authorization: Bot YOUR_BOT_TOKEN

REST Base URL

https://api.vxil.io/api/bot/v1

Event 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

  • 401 missing/invalid token
  • 403 token valid but bot not allowed for action

On this page